diff options
-rw-r--r-- | coverage/xmlreport.py | 2 | ||||
-rw-r--r-- | test/test_farm.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py index 3f6473a1..9898e7e1 100644 --- a/coverage/xmlreport.py +++ b/coverage/xmlreport.py @@ -80,7 +80,7 @@ class XmlReporter(Reporter): # Use the DOM to write the output file. outfile.write(self.xml_out.toprettyxml()) - def xml_file(self, cu, statements, excluded, missing): + def xml_file(self, cu, statements, excluded_unused, missing): """Add to the XML report for a single file.""" # Create the 'lines' and 'package' XML elements, which diff --git a/test/test_farm.py b/test/test_farm.py index a20a9a2d..c2c78be6 100644 --- a/test/test_farm.py +++ b/test/test_farm.py @@ -237,6 +237,12 @@ class FarmTestCase(object): assert not right_only, "Files in %s only: %s" % (dir2, right_only) def _scrub(self, strlist, scrubs): + """Scrub uninteresting data from the strings in `strlist`. + + `scrubs is a list of (find, replace) pairs of regexes that are used on + each string in `strlist`. A list of scrubbed strings is returned. + + """ scrubbed = [] for s in strlist: for rgx_find, rgx_replace in scrubs: |