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.
2 parents 71baf24 + b19374b commit abe2a8fCopy full SHA for abe2a8f
src/_pytest/config/__init__.py
@@ -538,7 +538,7 @@ def _getconftestmodules(
538
# Optimization: avoid repeated searches in the same directory.
539
# Assumes always called with same importmode and rootpath.
540
existing_clist = self._dirpath2confmods.get(directory)
541
- if existing_clist:
+ if existing_clist is not None:
542
return existing_clist
543
544
# XXX these days we may rather want to use config.rootpath
0 commit comments