Skip to main content

A plugin for testing Cython extension modules

Project description

Overview

PyPI Package latest release PyPI Package monthly downloads PyPI Wheel Supported versions Supported implementations Conda Version Conda Downloads

CI Check Status CI Tests Status Documentation Status

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


Download files

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

Source Distribution

pytest-cython-0.3.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

pytest_cython-0.3.1-py2.py3-none-any.whl (5.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pytest-cython-0.3.1.tar.gz.

File metadata

  • Download URL: pytest-cython-0.3.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pytest-cython-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4264474a8a6a2801256ad80f03e96552bd96848ddbcc3f1a7e37d7fa9a494455
MD5 23f8f72dea2206e607adc4bebe6e6c64
BLAKE2b-256 206bdeb78024bd288a911346a1e5729b3c9bd329eb0b0cdaf75ebde6072dee07

See more details on using hashes here.

File details

Details for the file pytest_cython-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_cython-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e3fff61549e0e58c4ab6ca3cb0a3999bc1e7b80e8d500912b2d35860b5c1f232
MD5 5f29cb4fe2f5cd0d9e568149eeb47136
BLAKE2b-256 035846441806d60412577affc3f61f09191a6ee2f4ae4068ba189f5c9ed695b0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page