summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-10-26 07:09:11 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-10-26 07:09:11 -0400
commit261d0c06aeade503e9da4f8e6e522557d01dd298 (patch)
treed036da8145e3e5acc120646be270a375b05ee213 /tests
parent73ef0bb6a134c1acb1df30851db09a5825d0301a (diff)
downloadpython-coveragepy-git-261d0c06aeade503e9da4f8e6e522557d01dd298.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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_files.py b/tests/test_files.py
index dadb22b5..a4ca02cd 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')