8a12970c96
* update `extract_argument` to use `Bound` APIs * tidy up borrow in macros expression * update `trybuild` output * more concise form for `DowncastError::new` Co-authored-by: Lily Foote <code@lilyf.org> * use `Borrowed` instead of newtype * use `Borrowed::from_ptr` methods in extract_argument * update UI tests * avoid double-negative `#[cfg]` clauses Co-authored-by: Lily Foote <code@lilyf.org> * review: LilyFoote, Icxolu feedback --------- Co-authored-by: Lily Foote <code@lilyf.org> |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
MANIFEST.in | ||
README.md | ||
build.rs | ||
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