summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-09-26 09:50:40 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-09-26 09:50:40 -0400
commitf0291520ba9031e2924cf38d4d2a5e021bd84032 (patch)
tree0fbfacc77dfdc15c36a7c325f8f9c3713f8858b0
parent89fb0a0d6950daa63947154e4d2593b71a6e61a7 (diff)
downloadpython-coveragepy-f0291520ba9031e2924cf38d4d2a5e021bd84032.tar.gz
lint cleanup
-rw-r--r--coverage/xmlreport.py2
-rw-r--r--test/test_farm.py6
2 files changed, 7 insertions, 1 deletions
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py
index 3f6473a..9898e7e 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 a20a9a2..c2c78be 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: