Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin misses compiled modules which are not included in any __init__.py listing #106

Open
ev-br opened this issue Feb 19, 2024 · 1 comment
Labels
enhancement New features w.r.t. the original refguide-check pytest-plugin

Comments

@ev-br
Copy link
Member

ev-br commented Feb 19, 2024

Case in point: scipy.fftpack.convolve namespace. It comes from a standalone Cython source, https://github.com/scipy/scipy/blob/main/scipy/fftpack/meson.build#L1, and its contents is not included into scipy.fftpack namespace, https://github.com/scipy/scipy/blob/main/scipy/fftpack/__init__.py

@ev-br ev-br added bug Something isn't working pytest-plugin labels Feb 19, 2024
@ev-br
Copy link
Member Author

ev-br commented Feb 19, 2024

The fix is probably to implement pytest_collect_file: the vanilla doctest version only looks into *py files:
https://github.com/pytest-dev/pytest/blob/8.0.x/src/_pytest/doctest.py#L127

cross-ref #99 (comment) for links to upstream pytest discussions.

@ev-br ev-br added some day enhancement New features w.r.t. the original refguide-check and removed some day bug Something isn't working labels Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features w.r.t. the original refguide-check pytest-plugin
Projects
None yet
Development

No branches or pull requests

1 participant