We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abe2a8f commit 5f23157Copy full SHA for 5f23157
src/_pytest/config/__init__.py
@@ -602,7 +602,7 @@ def _importconftest(
602
dirpath = conftestpath.parent
603
if dirpath in self._dirpath2confmods:
604
for path, mods in self._dirpath2confmods.items():
605
- if path and dirpath in path.parents or path == dirpath:
+ if dirpath in path.parents or path == dirpath:
606
assert mod not in mods
607
mods.append(mod)
608
self.trace(f"loading conftestmodule {mod!r}")
0 commit comments