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.post0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f7c079323ccdbe214e7fff82b24c97a4bf13175edf8670259447ea2319ee15d |
|
MD5 | f24330785e961eed5f9a40716a977bae |
|
BLAKE2b-256 | 451239dba6aae3257d762ef56b0667971e71544ab1932825839666152c744c1e |
Hashes for pytest_cython-0.1.1.post0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eebc42992079584fd5c9c291b8429536a2f9829bf38fa56b53c0fffbe1f63ebc |
|
MD5 | a5eb415a1a5860544cc7cc1e7d824c79 |
|
BLAKE2b-256 | 44fe87a2a63bae93024b96e15ffab0d5b272bd7f93a1a39fabef501c75eaf921 |