fix logic if importlib_metadata.PathDistribution.files is None

This commit is contained in:
Dirk Thomas 2019-06-04 10:41:58 -07:00 committed by GitHub
parent 6a6b6d8195
commit 0a91e181af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -784,7 +784,7 @@ class Config:
str(file)
for dist in importlib_metadata.distributions()
if any(ep.group == "pytest11" for ep in dist.entry_points)
for file in dist.files
for file in dist.files or []
)
for name in _iter_rewritable_modules(package_files):