Skip to content

Commit f54428f

Browse files
matusvalonedbat
authored andcommitted
Map also empty dictionaries to file
1 parent 6ffb2c3 commit f54428f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coverage/collector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def mapped_file_dict(self, d):
432432
else:
433433
raise runtime_err # pragma: cant happen
434434

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

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

0 commit comments

Comments
 (0)