AlenkaF commented on code in PR #49515: URL: https://github.com/apache/arrow/pull/49515#discussion_r2966474866
########## docs/source/developers/python/development.rst: ########## @@ -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 pyarrow/lib.pyx Review Comment: Small change to sync with the examples above ```suggestion $ python -m pytest --doctest-cython path/to/lib.pyx ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
