Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A plugin for testing Cython extension modules

Project Description


This Pytest plugin allows for the doctesting of C extension modules for Python, specifically created through Cython.


You can install “pytest-cython” via pip from PyPI:

pip install pytest-cython


Basic usage:

py.test --doctest-cython


  • 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


Contributions are very welcome. Tests can be run with tox:



  • Free software: MIT license

Distributed under the terms of the MIT license, “pytest-cython” is free and open source software


If you encounter any problems, please file an issue along with a detailed description.


This Pytest plugin was generated with Cookiecutter along with @hackebrot’s Cookiecutter-pytest-plugin and @ionelmc’s cookiecutter-pylibrary templates.


0.1.0 (2016-04-03)

  • First release on PyPI.

Release History

This version
History Node


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
(6.3 kB) Copy SHA256 Hash SHA256
Wheel 2.7 Apr 17, 2016
(19.1 kB) Copy SHA256 Hash SHA256
Source None Apr 17, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting