summaryrefslogtreecommitdiff
path: root/tests/test_api.py
diff options
context:
space:
mode:
authorNed Batchelder <nedbat@gmail.com>2017-01-14 17:18:56 -0500
committerNed Batchelder <nedbat@gmail.com>2017-01-14 17:18:56 -0500
commit3d8e48162df541de153ee0f23f75074e2fc13376 (patch)
treefd22302b96422e6749f8beb5d376dff03b3a66cf /tests/test_api.py
parent6d24c0864b2e18fb646ddca1cefd71819b64e83d (diff)
parentd9ca8593eba371b49402974c1c1f2bf7fd52fed9 (diff)
downloadpython-coveragepy-3d8e48162df541de153ee0f23f75074e2fc13376.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.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 9de83fb..c7fa5ca 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"])