Skip to content

Commit

Permalink
fix logic if importlib_metadata.PathDistribution.files is None
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas authored and nicoddemus committed Jun 4, 2019
1 parent 937f945 commit 1f80e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/config/__init__.py
Expand Up @@ -800,7 +800,7 @@ def _mark_plugins_for_rewrite(self, hook):
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):
Expand Down

0 comments on commit 1f80e93

Please sign in to comment.