Replies: 3 comments 1 reply
-
This is being discussed in #11388. |
Beta Was this translation helpful? Give feedback.
-
Thanks, my google-fu failed me on this one. Will test and comment over the original issue then. |
Beta Was this translation helpful? Give feedback.
-
Actually, there is one other part of the issue, which makes it not a complete duplicate. My use case is collecting doctests. The direct issue in the OP, https://github.com/pytest-dev/pytest/blob/main/src/_pytest/doctest.py#L131 Changing
The file exists and can be imported, so I suspect something in pytest makes some assumptions about only dealing with pure python modules. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use pytest doctesting of functions/modules implemented in C (or Cython if that matters). Collection fails with
So the module itself is resolved, but the doctests are not found. The errors seems to come from https://github.com/pytest-dev/pytest/blob/main/src/_pytest/main.py#L672
Doctests exist and are found by the standard library
doctest
:So I'd appreciate any pointers to how to fix this; if there's some magic config, great; if not we can try implementing what needs implementing.
Beta Was this translation helpful? Give feedback.
All reactions