diff options
author | Ned Batchelder <nedbat@gmail.com> | 2017-01-14 17:18:56 -0500 |
---|---|---|
committer | Ned Batchelder <nedbat@gmail.com> | 2017-01-14 17:18:56 -0500 |
commit | 38ef0444428ec185373b6165ab86f46831021f4b (patch) | |
tree | a391b23f828c1fb38e4765911e6bd945a04a6b4c /tests/test_api.py | |
parent | 7e027d161825519af72b41425ee5c676cd49cc34 (diff) | |
parent | df97ecb1b06192dced1aeeaf3526999c2deafb96 (diff) | |
download | python-coveragepy-git-38ef0444428ec185373b6165ab86f46831021f4b.tar.gz |
Merged in dachary/coverage.py/issue-426 (pull request #122)
make --source module do the same as --source directory #426
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index 9de83fb2..c7fa5ca2 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -461,12 +461,11 @@ class SourceOmitIncludeTest(OmitIncludeTestsMixin, CoverageTest): summary[k[:-3]] = v return summary - def test_source_package(self): - lines = self.coverage_usepkgs(source=["pkg1"]) - self.filenames_in(lines, "p1a p1b") + def test_source_package_unexecuted(self): + lines = self.coverage_usepkgs(source=["pkg1.sub"]) self.filenames_not_in(lines, "p2a p2b othera otherb osa osb") # Because source= was specified, we do search for unexecuted files. - self.assertEqual(lines['p1c'], 0) + self.assertEqual(lines['runmod3'], 0) def test_source_package_dotted(self): lines = self.coverage_usepkgs(source=["pkg1.p1b"]) |