summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-11-11 23:00:07 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-11-11 23:00:07 -0500
commitb5ad7d3f30ad817a0e126cdad1be3ae0df6910c6 (patch)
tree920162e204c9589406ea99c535d6fdd8c2baab93 /test
parent7fda5e935bb78af2fbc2ff01731d2adb8f6af848 (diff)
downloadpython-coveragepy-git-b5ad7d3f30ad817a0e126cdad1be3ae0df6910c6.tar.gz
A faster way to get the actual path of Windows files, especially when operating on lots of files in the same directory.
Diffstat (limited to 'test')
-rw-r--r--test/test_process.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_process.py b/test/test_process.py
index 259bf259..a67a9c2d 100644
--- a/test/test_process.py
+++ b/test/test_process.py
@@ -175,8 +175,8 @@ class ProcessTest(CoverageTest):
data.read_file(".coverage")
summary = data.summary(fullpath=True)
self.assertEqual(len(summary), 1)
- actual = os.path.abspath(list(summary.keys())[0])
- expected = os.path.abspath('src/x.py')
+ actual = os.path.normcase(os.path.abspath(list(summary.keys())[0]))
+ expected = os.path.normcase(os.path.abspath('src/x.py'))
self.assertEqual(actual, expected)
self.assertEqual(list(summary.values())[0], 6)