Merge pull request #9485 from pytest-dev/backport-9484-to-7.0.x

[7.0.x] config: fix incorrect cache hit check in _getconftestmodules
This commit is contained in:
Ran Benita 2022-01-07 13:44:58 +02:00 committed by GitHub
commit 0c5fc61610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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