Merge pull request #11808 from bluetech/doctest-conftest
doctest: remove special conftest handling
This commit is contained in:
commit
d65bcd9a3b
|
@ -558,13 +558,6 @@ class DoctestModule(Module):
|
||||||
else: # pragma: no cover
|
else: # pragma: no cover
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if self.path.name == "conftest.py":
|
|
||||||
module = self.config.pluginmanager._importconftest(
|
|
||||||
self.path,
|
|
||||||
self.config.getoption("importmode"),
|
|
||||||
rootpath=self.config.rootpath,
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
try:
|
try:
|
||||||
module = import_path(
|
module = import_path(
|
||||||
self.path,
|
self.path,
|
||||||
|
@ -576,6 +569,7 @@ class DoctestModule(Module):
|
||||||
skip("unable to import module %r" % self.path)
|
skip("unable to import module %r" % self.path)
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
# Uses internal doctest module parsing mechanism.
|
# Uses internal doctest module parsing mechanism.
|
||||||
finder = MockAwareDocTestFinder()
|
finder = MockAwareDocTestFinder()
|
||||||
optionflags = get_optionflags(self.config)
|
optionflags = get_optionflags(self.config)
|
||||||
|
|
Loading…
Reference in New Issue