From 48f8e449464eded01c6c64507e79ed04a8fb85f5 Mon Sep 17 00:00:00 2001 From: Matus Valo Date: Fri, 25 Mar 2022 21:00:02 +0100 Subject: [PATCH] Map also empty dictionaries to file --- coverage/collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coverage/collector.py b/coverage/collector.py index 0db8aba3d..7053848f2 100644 --- a/coverage/collector.py +++ b/coverage/collector.py @@ -431,7 +431,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."""