Merge pull request #6039 from blueyed/test_doctest_id

doctest: unset RUNNER_CLASS in pytest_unconfigure
This commit is contained in:
Daniel Hahler
2019-10-23 11:38:59 +02:00
committed by GitHub
3 changed files with 24 additions and 10 deletions

View File

@@ -86,6 +86,12 @@ def pytest_addoption(parser):
)
def pytest_unconfigure():
global RUNNER_CLASS
RUNNER_CLASS = None
def pytest_collect_file(path, parent):
config = parent.config
if path.ext == ".py":