diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-10-05 13:01:18 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-10-05 13:01:18 -0400 |
commit | d805335e342d4349f996a4c498d2d4cab93f7e8a (patch) | |
tree | 7c845a1c3dcb7c7d6d6462f1ac2003181639680e /tests | |
parent | 8fac25d759277e0f36b99a196f2a45dae4abe6fd (diff) | |
download | python-coveragepy-git-d805335e342d4349f996a4c498d2d4cab93f7e8a.tar.gz |
One last sensitivity to module docstrings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/modules/pkg1/__init__.py | 4 | ||||
-rw-r--r-- | tests/test_summary.py | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/modules/pkg1/__init__.py b/tests/modules/pkg1/__init__.py index e2e4af5f..3390a854 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 af1fb9bd..e5f470f0 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) |