summaryrefslogtreecommitdiff
path: root/tests/test_files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-11-27 18:54:26 -0500
committerNed Batchelder <ned@nedbatchelder.com>2020-11-28 19:48:31 -0500
commitbf479909ee9765fa3007360c12fb3b89906645f3 (patch)
treee41609cd0d3e5cc879cd0e8595c2ac1383e52fe5 /tests/test_files.py
parentc8b9a286b343f22a3cd4dcf4906b13faea68ee96 (diff)
downloadpython-coveragepy-git-bf479909ee9765fa3007360c12fb3b89906645f3.tar.gz
Fix tests for GitHub windows platform
The tests were failing because of differences in file paths. It was comparing: C:\Users\runneradmin\AppData\... to: C:\Users\RUNNER~1\AppData\... and failing. These changes normalize the file paths so the comparisons work properly.
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 a84ef61d..9df4e5d0 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -25,7 +25,7 @@ class FilesTest(CoverageTest):
def abs_path(self, p):
"""Return the absolute path for `p`."""
- return os.path.join(os.getcwd(), os.path.normpath(p))
+ return os.path.join(abs_file(os.getcwd()), os.path.normpath(p))
def test_simple(self):
self.make_file("hello.py")