Skip to content

Commit

Permalink
Map also empty dictionaries to file
Browse files Browse the repository at this point in the history
  • Loading branch information
matusvalo authored and nedbat committed Aug 6, 2022
1 parent 6ffb2c3 commit f54428f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coverage/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def mapped_file_dict(self, d):
else:
raise runtime_err # pragma: cant happen

return {self.cached_mapped_file(k): v for k, v in items if v}
return {self.cached_mapped_file(k): v for k, v in items}

def plugin_was_disabled(self, plugin):
"""Record that `plugin` was disabled during the run."""
Expand Down

0 comments on commit f54428f

Please sign in to comment.