summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-10-05 11:50:23 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-10-05 11:50:23 -0400
commit8fac25d759277e0f36b99a196f2a45dae4abe6fd (patch)
treef00167369fb9f7de62692a85e1f70fac6d71a559 /tests
parentaa10347a154d57455a2ca869615f2c6f9d10fc4d (diff)
downloadpython-coveragepy-git-8fac25d759277e0f36b99a196f2a45dae4abe6fd.tar.gz
Remove a module docstring that makes tests differ by Python version
Diffstat (limited to 'tests')
-rw-r--r--tests/covmodzip1.py6
-rw-r--r--tests/test_summary.py6
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