config: remove always truthy condition
This commit is contained in:
parent
abe2a8f4e1
commit
5f23157b39
|
@ -602,7 +602,7 @@ class PytestPluginManager(PluginManager):
|
||||||
dirpath = conftestpath.parent
|
dirpath = conftestpath.parent
|
||||||
if dirpath in self._dirpath2confmods:
|
if dirpath in self._dirpath2confmods:
|
||||||
for path, mods in self._dirpath2confmods.items():
|
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
|
assert mod not in mods
|
||||||
mods.append(mod)
|
mods.append(mod)
|
||||||
self.trace(f"loading conftestmodule {mod!r}")
|
self.trace(f"loading conftestmodule {mod!r}")
|
||||||
|
|
Loading…
Reference in New Issue