-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
topic: typingtype-annotation issuetype-annotation issue
Description
I assume by DoctestItem
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:
isinstance
checking 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
Perhaps pytest.DoctestItem
or something of the sort
Alternative Solutions
Further battle-testing of pytest
's doctest plugin to stabilize the API, then exporting it
Additional context
I am using DoctestItem
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)
- See search for
/from.*DoctestItem/ language:Python
on cs.github.com
Metadata
Metadata
Assignees
Labels
topic: typingtype-annotation issuetype-annotation issue