Skip to content

Commit

Permalink
ambigious -> ambiguous
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Sep 12, 2020
1 parent 263f3e1 commit c907b2e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/modules/usepkgs.py
Expand Up @@ -5,4 +5,4 @@
import pkg2.p2a, pkg2.p2b
import othermods.othera, othermods.otherb
import othermods.sub.osa, othermods.sub.osb
import ambigious, ambigious.pkg1.ambigious
import ambiguous, ambiguous.pkg1.ambiguous
18 changes: 9 additions & 9 deletions tests/test_api.py
Expand Up @@ -935,20 +935,20 @@ def test_source_package_as_package_part_omitted(self):
self.filenames_not_in(lines, "p1b")
self.assertEqual(lines['p1c'], 0)

def test_ambigious_source_package_as_dir(self):
# pkg1 is a directory and a pkg, since we cd into tests/modules/ambigious
self.chdir(self.nice_file(TESTS_DIR, 'modules', "ambigious"))
# pkg1 defaults to directory because tests/modules/ambigious/pkg1 exists
def test_ambiguous_source_package_as_dir(self):
# pkg1 is a directory and a pkg, since we cd into tests/modules/ambiguous
self.chdir(self.nice_file(TESTS_DIR, 'modules', "ambiguous"))
# pkg1 defaults to directory because tests/modules/ambiguous/pkg1 exists
lines = self.coverage_usepkgs(source=["pkg1"])
self.filenames_in(lines, "ambigious")
self.filenames_in(lines, "ambiguous")
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
self.chdir(self.nice_file(TESTS_DIR, 'modules', "ambigious"))
def test_ambiguous_source_package_as_package(self):
# pkg1 is a directory and a pkg, since we cd into tests/modules/ambiguous
self.chdir(self.nice_file(TESTS_DIR, 'modules', "ambiguous"))
lines = self.coverage_usepkgs(source_pkgs=["pkg1"])
self.filenames_in(lines, "p1a p1b")
self.filenames_not_in(lines, "p2a p2b othera otherb osa osb ambigious")
self.filenames_not_in(lines, "p2a p2b othera otherb osa osb ambiguous")
# Because source= was specified, we do search for unexecuted files.
self.assertEqual(lines['p1c'], 0)

Expand Down

0 comments on commit c907b2e

Please sign in to comment.