summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-10-21 15:05:18 -0400
committerNed Batchelder <ned@nedbatchelder.com>2012-10-21 15:05:18 -0400
commitd19b51a1eedfa1d859fc298d4d4c2abbbb69aefe (patch)
treef0937245fca533f928816c6d8762737102fbe7ea
parent78fb1561f7060b20ca527a8a7e7f9bd5018891cf (diff)
downloadpython-coveragepy-git-d19b51a1eedfa1d859fc298d4d4c2abbbb69aefe.tar.gz
Minor style tweaks
-rw-r--r--coverage/xmlreport.py2
-rw-r--r--test/test_api.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py
index a65d5a6d..03f910c8 100644
--- a/coverage/xmlreport.py
+++ b/coverage/xmlreport.py
@@ -114,7 +114,7 @@ class XmlReporter(Reporter):
# Q: can we get info about the number of times a statement is
# executed? If so, that should be recorded here.
- xline.setAttribute("hits", str(int(not line in analysis.missing)))
+ xline.setAttribute("hits", str(int(line not in analysis.missing)))
if self.arcs:
if line in branch_stats:
diff --git a/test/test_api.py b/test/test_api.py
index 48f10829..e24156f2 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -90,7 +90,7 @@ class SingletonApiTest(CoverageTest):
class ApiTest(CoverageTest):
"""Api-oriented tests for Coverage."""
- def clean_files(self, files, *pats):
+ def clean_files(self, files, pats):
"""Remove names matching `pats` from `files`, a list of filenames."""
good = []
for f in files:
@@ -104,7 +104,7 @@ class ApiTest(CoverageTest):
def listdir(self, where):
"""Like os.listdir, but exclude files we don't care about."""
files = os.listdir(where)
- return self.clean_files(files, "*.pyc", "__pycache__")
+ return self.clean_files(files, ["*.pyc", "__pycache__"])
def test_unexecuted_file(self):
cov = coverage.coverage()