config: remove always truthy condition

This commit is contained in:
Ran Benita 2022-01-08 12:36:43 +02:00
parent abe2a8f4e1
commit 5f23157b39
1 changed files with 1 additions and 1 deletions

View File

@ -602,7 +602,7 @@ class PytestPluginManager(PluginManager):
dirpath = conftestpath.parent
if dirpath in self._dirpath2confmods:
for path, mods in self._dirpath2confmods.items():
if path and dirpath in path.parents or path == dirpath:
if dirpath in path.parents or path == dirpath:
assert mod not in mods
mods.append(mod)
self.trace(f"loading conftestmodule {mod!r}")