Merge pull request #9484 from bluetech/getconftestmodules-cache-fix
config: fix incorrect cache hit check in _getconftestmodules
This commit is contained in:
commit
abe2a8f4e1
|
@ -538,7 +538,7 @@ class PytestPluginManager(PluginManager):
|
|||
# Optimization: avoid repeated searches in the same directory.
|
||||
# Assumes always called with same importmode and rootpath.
|
||||
existing_clist = self._dirpath2confmods.get(directory)
|
||||
if existing_clist:
|
||||
if existing_clist is not None:
|
||||
return existing_clist
|
||||
|
||||
# XXX these days we may rather want to use config.rootpath
|
||||
|
|
Loading…
Reference in New Issue