Skip to content
Merged
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
11 changes: 11 additions & 0 deletions docs/source/developers/python/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,17 @@ 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::
Cython ``.pxi`` files are included in ``.pyx`` files at compile time,
so ``--doctest-cython`` cannot be run directly on ``.pxi`` files.
In PyArrow, all ``.pxi`` files are included into ``lib.pyx``, so run
doctests on that file::

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

Any doctest errors originating from ``.pxi`` files will appear under
``lib.pyx``, not the original ``.pxi`` filename.

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

Expand Down
Loading