summaryrefslogtreecommitdiff
path: root/tests/test_files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-06-16 16:55:09 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-06-16 16:55:09 -0400
commit54c16b6941acdf3c7b36833841076d352b44acff (patch)
tree4141604e5bea18c420153d5cdf3f00989993d8ea /tests/test_files.py
parentaac8f658b4ae955b241e4cb54ca61690a19df418 (diff)
downloadpython-coveragepy-git-54c16b6941acdf3c7b36833841076d352b44acff.tar.gz
More PathAliases testing precision
Diffstat (limited to 'tests/test_files.py')
-rw-r--r--tests/test_files.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/test_files.py b/tests/test_files.py
index e5dafdf6..4d9e3924 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -225,12 +225,6 @@ class PathAliasesTest(CoverageTest):
self.assert_mapped(aliases, '/foo/bar/d1/x.py', './mysrc1/x.py')
self.assert_mapped(aliases, '/foo/bar/d2/y.py', './mysrc2/y.py')
-
-class RelativePathAliasesTest(CoverageTest):
- """Tests for coverage/files.py:PathAliases, with relative files."""
-
- run_in_temp_dir = False
-
def test_dot(self):
for d in ('.', '..', '../other', '~'):
aliases = PathAliases()
@@ -240,7 +234,7 @@ class RelativePathAliasesTest(CoverageTest):
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')
+ self.assert_mapped(aliases, the_file, '/the/source/a.py')
class FindPythonFilesTest(CoverageTest):