Skip to main content

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:

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.

Changelog

0.1.0 (2016-04-03)

  • First release on PyPI.

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.1.0.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_cython-0.1.0-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pytest-cython-0.1.0.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytest-cython-0.1.0.tar.gz
Algorithm Hash digest
SHA256 90fa7e4e619bababeb433d3ba173a80d20473cce0bf3dce2c0e6f298becf5998
MD5 89d818b8dc496299c5e48dcc5b04e369
BLAKE2b-256 7399c775d4458e8df0eefa8573db763de710ab03b6552265d78a8a59137e1af6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_cython-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3f0143fba902f07464b236466d3a146a4c68e36332aa4a58e4a2e0ff7eb3bc46
MD5 89e63567d9e7175bc309b489da66196f
BLAKE2b-256 49406294efb4232cce648df2d1f2169b35efb1b7338aa49c8db22dba917f4ec9

See more details on using hashes here.

Supported by

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