Skip to content

Commit c868cc3

Browse files
committed
Fix test
1 parent 6f1123e commit c868cc3

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ test:
44
cargo test
55
cargo clippy
66
tox
7-
for example in examples/*; do tox -e py --workdir $$example; done
7+
for example in examples/*; do tox -e py -c $$example/tox.ini; done
8+
9+
test_py3:
10+
tox -e py3
11+
for example in examples/*; do tox -e py3 -c $$example/tox.ini; done
812

913
publish:
1014
cargo test

examples/rustapi_module/tests/test_datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,4 +296,4 @@ def test_tz_class_introspection():
296296
tzi = rdt.TzClass()
297297

298298
assert tzi.__class__ == rdt.TzClass
299-
assert repr(tzi).startswith("<rustapi_module.datetime.TzClass object at")
299+
assert repr(tzi).startswith("<TzClass object at")

tests/test_module.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn double(x: usize) -> usize {
2929
#[pymodule]
3030
#[cfg(Py_3)]
3131
fn module_with_functions(py: Python, m: &PyModule) -> PyResult<()> {
32-
use pyo3::{wrap_pyfunction, wrap_pymodule};
32+
use pyo3::wrap_pyfunction;
3333

3434
#[pyfn(m, "sum_as_string")]
3535
fn sum_as_string_py(_py: Python, a: i64, b: i64) -> PyResult<String> {

0 commit comments

Comments
 (0)