From 261d0c06aeade503e9da4f8e6e522557d01dd298 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 26 Oct 2017 07:09:11 -0400 Subject: Root is acceptable as a combining path (the manylinux tests end up with one of these) --- tests/test_files.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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') -- cgit v1.2.1