-
Notifications
You must be signed in to change notification settings - Fork 160
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
ModuleNotFoundError with pytest-doctestplus #872
Comments
It's not unlikely that pytest-asyncio is at fault here. The plugin has some pretty ugly code that runs during test collection: Essentially, it can only deal with standard pytest collectors and its subclasses. This could be a reason for the error you're seeing. What's the collector type of the README file in your example? |
I don't know. @bsipocz as you'd looked at this from the doctestplus side, perhaps you can help here? |
We certainly customised the collector, but not as a subclass, so it all could be the source of the problem. As I see there is certainly more care put in the API docs collection than in the narrative docs files, so I'll try a few things this week to see if we have an easy fix for this. |
I think this can be closed with the newest release of pytest-doctestplus |
Thanks for the update @bsipocz ! |
I'm hitting an issue using
pytest-asyncio
alongsidepytest-doctestplus
, a plugin for detecting tests in documentation. I admittedly don't know which plugin might need to change here, though given the popularity of doctests it would be great if the two worked together.Reproduce
Create a
README.md
containing:Then run:
Cross reference: scientific-python/pytest-doctestplus#256
The text was updated successfully, but these errors were encountered: