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


Release history Release notifications

This version
History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pytest_cython-0.1.0-py2.py3-none-any.whl (6.3 kB) Copy SHA256 hash SHA256 Wheel 2.7 Apr 17, 2016
pytest-cython-0.1.0.tar.gz (19.1 kB) Copy SHA256 hash SHA256 Source None Apr 17, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page