A plugin for testing Cython extension modules
Project description
Overview
This pytest plugin allows for the doctesting of C extension modules for Python, specifically created through cython.
Installation
You can install "pytest-cython" via pip from PyPI:
pip install pytest-cython
Usage
Basic usage:
pytest --doctest-cython
You can also run the doctests for a single .pyx
file as such:
pytest --doctest-cython path/to/module.pyx
Note
It is assumed that the C extension modules have been build in place before running py.test
and there is a
matching Cython .pyx
file
Compatibility
The following table describes the versions of Pytest and Cython the each version of the pytest-cython plugin is compatible with.
Version | Pytest | Cython |
---|---|---|
0.3.x | 8 | 0.29, 3 |
0.2.x | 6, 7 | 0.29, 3 |
Issues
If you encounter any problems, please file an issue along with a detailed description.
Acknowledgements
This pytest plugin was generated with cookiecutter along with @hackebrot's cookiecutter-pytest-plugin and @ionelmc's cookiecutter-pylibrary templates.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest_cython-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebd29cbc5d50edb87480940713eaed2efe0952dca7fe899e2c80d3255f6dea9c |
|
MD5 | f7a7b8c66a7a2bed4a3fc289b46bf994 |
|
BLAKE2b-256 | aee865a42ad024f15ff73b0ec8aa7c0e9fc17aa4f9cb27174e00b74803f82b6f |