Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/source/developers/python/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,16 @@ for ``.py`` files or
for ``.pyx`` and ``.pxi`` files. In this case you will also need to
install the `pytest-cython <https://github.com/lgpage/pytest-cython>`_ plugin.

.. note::

When running doctests for ``.pxi`` files, they are actually tested via
``lib.pyx``. Use the following command pattern::

$ python -m pytest --doctest-cython path/to/lib.pyx

Any doctest errors in ``.pxi`` files will surface under ``lib.pyx`` in
the test output, not under the original ``.pxi`` filename.

Testing Documentation Examples
-------------------------------

Expand Down