A plugin for testing Cython extension modules
Project description
Overview
docs |
|
---|---|
tests |
|
package |
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:
py.test --doctest-cython
Note
It is assumed that the C extension modules have been build inplace before running py.test and there is a matching Cython .pyx file
The embedsignature Cython compiler directive must be set to True
Contributing
Contributions are very welcome. Tests can be run with tox:
tox
License
Free software: MIT license
Distributed under the terms of the MIT license, “pytest-cython” is free and open source software
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.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 192cc9ef078b068e007a9efa1b85c9dc8806ce5d9fa4db026a7ef317e8f27955 |
|
MD5 | 9aa8ec7cc6397c82783d0bce6dc7db59 |
|
BLAKE2b-256 | 9f57e5ac68d4e71204099f67ff52df7f4627cc3ffbc96c4344d14ab4e7a2c9fd |