From aefe08b437d1ce9c4e0bbdd7dba69e7316ede313 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 4 Jan 2020 16:02:29 -0500 Subject: Ensure file touching happens if nothing was measured. #884 --- coverage/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index 3a0b0107..e8d4bc95 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -716,7 +716,7 @@ class Coverage(object): # Touch all the files that could have executed, so that we can # mark completely unexecuted files as 0% covered. - if self._data: + if self._data is not None: for file_path, plugin_name in self._inorout.find_possibly_unexecuted_files(): file_path = self._file_mapper(file_path) self._data.touch_file(file_path, plugin_name) -- cgit v1.2.1