diff options
-rw-r--r-- | tests/covmodzip1.py | 6 | ||||
-rw-r--r-- | tests/test_summary.py | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/covmodzip1.py b/tests/covmodzip1.py index 6f135dd6..cab64281 100644 --- a/tests/covmodzip1.py +++ b/tests/covmodzip1.py @@ -1,6 +1,10 @@ # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt -"""covmodzip.py: for putting into a zip file.""" +# Module-level docstrings are counted differently in different versions of Python, +# so don't add one here. +# pylint: disable=missing-docstring + +# covmodzip.py: for putting into a zip file. j = 1 j += 1 diff --git a/tests/test_summary.py b/tests/test_summary.py index 0fe112d7..af1fb9bd 100644 --- a/tests/test_summary.py +++ b/tests/test_summary.py @@ -43,16 +43,16 @@ class SummaryTest(UsingModulesMixin, CoverageTest): # Name Stmts Miss Cover # ------------------------------------------------------------------ # c:/ned/coverage/tests/modules/covmod1.py 2 0 100% - # c:/ned/coverage/tests/zipmods.zip/covmodzip1.py 3 0 100% + # c:/ned/coverage/tests/zipmods.zip/covmodzip1.py 2 0 100% # mycode.py 4 0 100% # ------------------------------------------------------------------ - # TOTAL 9 0 100% + # TOTAL 8 0 100% self.assertNotIn("/coverage/__init__/", report) self.assertIn("/tests/modules/covmod1.py ", report) self.assertIn("/tests/zipmods.zip/covmodzip1.py ", report) self.assertIn("mycode.py ", report) - self.assertEqual(self.last_line_squeezed(report), "TOTAL 9 0 100%") + self.assertEqual(self.last_line_squeezed(report), "TOTAL 8 0 100%") def test_report_just_one(self): # Try reporting just one module |