diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-07-07 13:47:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-07 13:47:25 -0400 |
commit | a9c49fbbd4fe7429936a8cc2cb50ec834c9aeb8b (patch) | |
tree | c08f34073cc3c768a366f1887e89f20778fd7428 /coverage/control.py | |
parent | 48f996ff8dcccfefe0922fafc070b36f980c231e (diff) | |
parent | dade9db58673d4f712ba5c50ed66d1c67a7e1d5d (diff) | |
download | python-coveragepy-git-a9c49fbbd4fe7429936a8cc2cb50ec834c9aeb8b.tar.gz |
Merge branch 'master' into Fix-typo
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/coverage/control.py b/coverage/control.py index 823169d1..250bc137 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -648,8 +648,9 @@ class Coverage(object): self._warn("No data was collected.", slug="no-data-collected") # Find files that were never executed at all. - for file_path, plugin_name in self._inorout.find_unexecuted_files(): - self._data.touch_file(file_path, plugin_name) + if self._data: + for file_path, plugin_name in self._inorout.find_unexecuted_files(): + self._data.touch_file(file_path, plugin_name) if self.config.note: self._data.add_run_info(note=self.config.note) |