summaryrefslogtreecommitdiff
path: root/coverage/data.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-10-04 11:08:36 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-10-04 11:08:36 -0400
commit76aec1b04f44713ce43f3e84113d55ef58a54d21 (patch)
treecb38aacfcde8d2794462178b45edb623bf6fb1ac /coverage/data.py
parent448eb3521b366a487b88252f8f6027ef48ef5773 (diff)
downloadpython-coveragepy-76aec1b04f44713ce43f3e84113d55ef58a54d21.tar.gz
Combining now issues warnings on unreadable files, unconditionally
Diffstat (limited to 'coverage/data.py')
-rw-r--r--coverage/data.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/coverage/data.py b/coverage/data.py
index b8d9dad..fb0b022 100644
--- a/coverage/data.py
+++ b/coverage/data.py
@@ -662,7 +662,7 @@ class CoverageDataFiles(object):
filename += "." + suffix
data.write_file(filename)
- def combine_parallel_data(self, data, aliases=None, data_paths=None, ignore_errors=False):
+ def combine_parallel_data(self, data, aliases=None, data_paths=None):
"""Combine a number of data files together.
Treat `self.filename` as a file prefix, and combine the data from all
@@ -678,10 +678,9 @@ class CoverageDataFiles(object):
If `data_paths` is not provided, then the directory portion of
`self.filename` is used as the directory to search for data files.
- Every data file found and combined is then deleted from disk.
-
- If `ignore_errors` is True, then files that cannot be read will cause
- a warning, and will not be deleted.
+ Every data file found and combined is then deleted from disk. If a file
+ cannot be read, a warning will be issued, and the file will not be
+ deleted.
"""
# Because of the os.path.abspath in the constructor, data_dir will
@@ -705,8 +704,6 @@ class CoverageDataFiles(object):
try:
new_data.read_file(f)
except CoverageException as exc:
- if not ignore_errors:
- raise
if self.warn:
# The CoverageException has the file name in it, so just
# use the message as the warning.