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.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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest-cython-0.2.2.tar.gz.
File metadata
- Download URL: pytest-cython-0.2.2.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b45081baf3d16a708c68a9b85db155cbadf42640f08eae444fe23a87d06f129
|
|
| MD5 |
9b80158a365724e09c0de4b50faf597c
|
|
| BLAKE2b-256 |
dff42510675a350db5174a678cec6fd4b41a62da138313dd1f29d6e723334c38
|
File details
Details for the file pytest_cython-0.2.2-py2.py3-none-any.whl.
File metadata
- Download URL: pytest_cython-0.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f244b0a7b809c0f8f8238e55e80edd20abdccbca9e5c9cf6b5a9a2810aa2e4f
|
|
| MD5 |
62d3d3e051962721c7f5f6d3f6e6f1f9
|
|
| BLAKE2b-256 |
a1b1c00db94823e897e876d241704aed66a787891e18b821b4fb63cc2be8a3a2
|