diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-02-10 10:15:04 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-02-10 10:15:04 -0500 |
commit | 954a2ee8ca790f1b3ad34206f51343fd96cff177 (patch) | |
tree | 425af9dbff80a2aab98584ba8bef75f50c14b2e2 /tests/test_api.py | |
parent | 700f7083743424ba4370fe6892006a090db08909 (diff) | |
download | python-coveragepy-git-954a2ee8ca790f1b3ad34206f51343fd96cff177.tar.gz |
Oops, omitting inside a source package didn't work. Now it does. #638
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index b5fcd53f..b461c503 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -615,6 +615,13 @@ class SourceOmitIncludeTest(OmitIncludeTestsMixin, CoverageTest): self.filenames_not_in(lines, "p1b") self.assertEqual(lines['p1c'], 0) + def test_source_package_as_package_part_omitted(self): + # https://bitbucket.org/ned/coveragepy/issues/638/run-omit-is-ignored-since-45 + lines = self.coverage_usepkgs(source=["pkg1"], omit=["*/p1b.py"]) + self.filenames_in(lines, "p1a") + self.filenames_not_in(lines, "p1b") + self.assertEqual(lines['p1c'], 0) + class ReportIncludeOmitTest(OmitIncludeTestsMixin, CoverageTest): """Tests of the report include/omit functionality.""" |