0b2f19b3c9
* fix `__dict__` on Python 3.9 with limited API * [review] Icxolu suggestions Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com> * [review] Icxolu * missing import --------- Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml | ||
MANIFEST.in | ||
noxfile.py | ||
pyproject.toml | ||
README.md |
pyo3-pytests
An extension module built using PyO3, used to test and benchmark PyO3 from Python.
Testing
This package is intended to be built using maturin
. Once built, you can run the tests using pytest
:
pip install maturin
maturin develop
pytest
Alternatively, install nox and run the tests inside an isolated environment:
nox
Running benchmarks
You can install the module in your Python environment and then run the benchmarks with pytest:
pip install .
pytest --benchmark-enable
Or with nox:
nox -s bench