diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-10-26 07:09:11 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-10-26 07:09:11 -0400 |
commit | e1d414f035829bedd4d06a8dbc9bd638080332fb (patch) | |
tree | 51685d62516274a280b6dc2024fca2b824be94b3 /tests | |
parent | 26821ed8e6ea20925ab859bf5e06607f0861bb4c (diff) | |
download | python-coveragepy-e1d414f035829bedd4d06a8dbc9bd638080332fb.tar.gz |
Root is acceptable as a combining path (the manylinux tests end up with one of these)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_files.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_files.py b/tests/test_files.py index dadb22b..a4ca02c 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -161,6 +161,9 @@ class PathAliasesTest(CoverageTest): canonicalized paths. """ + aliases.pprint() + print(inp) + print(out) self.assertEqual(aliases.map(inp), files.canonical_filename(out)) def assert_unchanged(self, aliases, inp): @@ -242,7 +245,7 @@ class PathAliasesTest(CoverageTest): self.assert_mapped(aliases, '/foo/bar/d2/y.py', './mysrc2/y.py') def test_dot(self): - for d in ('.', '..', '../other', '~'): + for d in ('.', '..', '../other', '~', '/'): aliases = PathAliases() aliases.add(d, '/the/source') the_file = os.path.join(d, 'a.py') |