Merge pull request #11808 from bluetech/doctest-conftest

doctest: remove special conftest handling
This commit is contained in:
Ran Benita
2024-01-13 19:50:20 +02:00
committed by GitHub
+1 -7
View File
@@ -558,13 +558,6 @@ class DoctestModule(Module):
else: # pragma: no cover
pass
if self.path.name == "conftest.py":
module = self.config.pluginmanager._importconftest(
self.path,
self.config.getoption("importmode"),
rootpath=self.config.rootpath,
)
else:
try:
module = import_path(
self.path,
@@ -576,6 +569,7 @@ class DoctestModule(Module):
skip("unable to import module %r" % self.path)
else:
raise
# Uses internal doctest module parsing mechanism.
finder = MockAwareDocTestFinder()
optionflags = get_optionflags(self.config)