fix logic if importlib_metadata.PathDistribution.files is None
This commit is contained in:
parent
6a6b6d8195
commit
0a91e181af
|
@ -784,7 +784,7 @@ class Config:
|
||||||
str(file)
|
str(file)
|
||||||
for dist in importlib_metadata.distributions()
|
for dist in importlib_metadata.distributions()
|
||||||
if any(ep.group == "pytest11" for ep in dist.entry_points)
|
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):
|
for name in _iter_rewritable_modules(package_files):
|
||||||
|
|
Loading…
Reference in New Issue