Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.9k
Closed
Description
I assume byDoctestItem only being available from_pytest.doctest.DoctestItem, it's an internal / unstable API.
If I'm completely mistaken in that assumption please let me know
What's the problem this feature will solve?
Stable import for:
isinstancechecking inside of autorun setup fixtures w/doctest_namespace(see my libtmux, libvcs examples, as well and cs.github.com search query)- other plugins re-using
DoctestItem, e.g. my docutils plugin
Describe the solution you'd like
Perhapspytest.DoctestItem or something of the sort
Alternative Solutions
Further battle-testing ofpytest's doctest plugin to stabilize the API, then exporting it
Additional context
I am usingDoctestItem on 3+ open source projects and need a stable place to import the type from
- libtmux/conftest.py
- libvcs/src/libvcs/conftest.py
- pytest-doctest-docutils (overrides pytest's doctest plugin)
- Seesearch for
/from.*DoctestItem/ language:Pythonon cs.github.com