1. Ned Batchelder
  2. coverage.py


Ned Batchelder  committed 95c6051

Minor style tweaks

  • Participants
  • Parent commits 2d00e62
  • Branches default

Comments (0)

Files changed (2)

File coverage/xmlreport.py

View file
             # 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:

File test/test_api.py

View file
 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:
     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()