doctest_namespace fixture is not used depending on whether other tests run #10775
Labels
topic: fixtures
anything involving fixtures directly or indirectly
type: question
general question, might be closed after 2 weeks of inactivity
pip list
from the virtual environment you are usingSee #2379. Take the example there, which is already described as not functioning, but then add a new test file under
tests
calledtests/test_helloworld.py
and make a simple test likeSo the structure looks like
Then the
doctest_namespace
fixture is picked up in the doctests and the issue is "fixed". This seems like somewhat inconsistent behavior when it comes to discovery and makes it really hard to debug. Is this expected behavior?OS Details
The text was updated successfully, but these errors were encountered: