summaryrefslogtreecommitdiff
path: root/tests/test_api.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-09-12 19:42:14 -0400
committerNed Batchelder <ned@nedbatchelder.com>2020-09-12 19:42:39 -0400
commit263f3e1da8e5a6a32056a8697286f9adf0f6a55d (patch)
treea5dc4806aa85159ed15a4c80e228d8b58de38fef /tests/test_api.py
parentecd6ab19a43a444bc7fc9dfbc08f3ca5274365ca (diff)
downloadpython-coveragepy-git-263f3e1da8e5a6a32056a8697286f9adf0f6a55d.tar.gz
Docs and cleanup for source_pkgs
Diffstat (limited to 'tests/test_api.py')
-rw-r--r--tests/test_api.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 7311073a..a28d0133 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -940,13 +940,8 @@ class SourceIncludeOmitTest(IncludeOmitTestsMixin, CoverageTest):
self.chdir(self.nice_file(TESTS_DIR, 'modules', "ambigious"))
# pkg1 defaults to directory because tests/modules/ambigious/pkg1 exists
lines = self.coverage_usepkgs(source=["pkg1"])
- self.assertEqual(
- self.coverage_usepkgs(source=["pkg1"]),
- {
- u"__init__.py": 0, u"__init__": 0,
- u"ambigious.py": 0, u"ambigious": 0,
- },
- )
+ self.filenames_in(lines, "ambigious")
+ self.filenames_not_in(lines, "p1a p1b p1c")
def test_ambigious_source_package_as_package(self):
# pkg1 is a directory and a pkg, since we cd into tests/modules/ambigious