Skip to content

Commit 5f23157

Browse files
committed
config: remove always truthy condition
1 parent abe2a8f commit 5f23157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ def _importconftest(
602602
dirpath = conftestpath.parent
603603
if dirpath in self._dirpath2confmods:
604604
for path, mods in self._dirpath2confmods.items():
605-
if path and dirpath in path.parents or path == dirpath:
605+
if dirpath in path.parents or path == dirpath:
606606
assert mod not in mods
607607
mods.append(mod)
608608
self.trace(f"loading conftestmodule {mod!r}")

0 commit comments

Comments
 (0)