Skip to main content

A plugin for testing Cython extension modules

Project description

Overview

docs Documentation Status
tests Travis-CI Build Status AppVeyor Build Status Requirements Status
package PyPI Package latest release PyPI Package monthly downloads PyPI Wheel Supported versions Supported implementations

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-cython, version 0.1.1.post0
Filename, size File type Python version Upload date Hashes
Filename, size pytest_cython-0.1.1.post0-py2.py3-none-any.whl (6.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pytest-cython-0.1.1.post0.tar.gz (817.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page