summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-10-05 13:01:18 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-10-05 13:01:18 -0400
commit61cdacb6234ca74899130c5c2afd0de0987f57f1 (patch)
treef1858a7de770a71f2ae726aa0a0797855d353d15 /tests
parenta5b29ec821096a8347f24cd32879ed5b2fd31678 (diff)
downloadpython-coveragepy-61cdacb6234ca74899130c5c2afd0de0987f57f1.tar.gz
One last sensitivity to module docstrings
Diffstat (limited to 'tests')
-rw-r--r--tests/modules/pkg1/__init__.py4
-rw-r--r--tests/test_summary.py2
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/modules/pkg1/__init__.py b/tests/modules/pkg1/__init__.py
index e2e4af5..3390a85 100644
--- a/tests/modules/pkg1/__init__.py
+++ b/tests/modules/pkg1/__init__.py
@@ -1,4 +1,2 @@
-# This __init__.py has a module-level docstring, which is counted as a
-# statement.
-"""A simple package for testing with."""
+# A simple package for testing with.
print("pkg1.__init__: %s" % (__name__,))
diff --git a/tests/test_summary.py b/tests/test_summary.py
index af1fb9b..e5f470f 100644
--- a/tests/test_summary.py
+++ b/tests/test_summary.py
@@ -617,7 +617,7 @@ class SummaryTest2(UsingModulesMixin, CoverageTest):
report = repout.getvalue().replace('\\', '/')
report = re.sub(r"\s+", " ", report)
- self.assertIn("tests/modules/pkg1/__init__.py 2 0 0 0 100%", report)
+ self.assertIn("tests/modules/pkg1/__init__.py 1 0 0 0 100%", report)
self.assertIn("tests/modules/pkg2/__init__.py 0 0 0 0 100%", report)