summaryrefslogtreecommitdiff
path: root/tests/test_files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-06-03 20:41:27 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-06-03 20:41:27 -0400
commit0bf1034464ffa4c8c18c025f943bc59b485a334c (patch)
tree241f6f0a78a7498b9ec035bd51dca0fb409ef7d8 /tests/test_files.py
parente73b3e73e81c2b639d8e1feac1abdb96c7e3d795 (diff)
downloadpython-coveragepy-0bf1034464ffa4c8c18c025f943bc59b485a334c.tar.gz
Make the test match the code better
Diffstat (limited to 'tests/test_files.py')
-rw-r--r--tests/test_files.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_files.py b/tests/test_files.py
index ea1c494..070430f 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -183,7 +183,7 @@ class RelativePathAliasesTest(CoverageTest):
aliases.add(d, '/the/source')
the_file = os.path.join(d, 'a.py')
the_file = os.path.expanduser(the_file)
- the_file = os.path.abspath(the_file)
+ the_file = os.path.abspath(os.path.realpath(the_file))
assert '~' not in the_file # to be sure the test is pure.
self.assertEqual(aliases.map(the_file), '/the/source/a.py')