Fix test
This commit is contained in:
parent
6f1123e6b1
commit
c868cc3e4b
6
Makefile
6
Makefile
|
@ -4,7 +4,11 @@ test:
|
|||
cargo test
|
||||
cargo clippy
|
||||
tox
|
||||
for example in examples/*; do tox -e py --workdir $$example; done
|
||||
for example in examples/*; do tox -e py -c $$example/tox.ini; done
|
||||
|
||||
test_py3:
|
||||
tox -e py3
|
||||
for example in examples/*; do tox -e py3 -c $$example/tox.ini; done
|
||||
|
||||
publish:
|
||||
cargo test
|
||||
|
|
|
@ -296,4 +296,4 @@ def test_tz_class_introspection():
|
|||
tzi = rdt.TzClass()
|
||||
|
||||
assert tzi.__class__ == rdt.TzClass
|
||||
assert repr(tzi).startswith("<rustapi_module.datetime.TzClass object at")
|
||||
assert repr(tzi).startswith("<TzClass object at")
|
||||
|
|
|
@ -29,7 +29,7 @@ fn double(x: usize) -> usize {
|
|||
#[pymodule]
|
||||
#[cfg(Py_3)]
|
||||
fn module_with_functions(py: Python, m: &PyModule) -> PyResult<()> {
|
||||
use pyo3::{wrap_pyfunction, wrap_pymodule};
|
||||
use pyo3::wrap_pyfunction;
|
||||
|
||||
#[pyfn(m, "sum_as_string")]
|
||||
fn sum_as_string_py(_py: Python, a: i64, b: i64) -> PyResult<String> {
|
||||
|
|
Loading…
Reference in New Issue