summaryrefslogtreecommitdiff
path: root/tests/test_concurrency.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-07-26 22:51:26 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-07-26 22:51:26 -0400
commit7b2590ee8013fc45276393495887bc8b039a3b0a (patch)
tree137105077e4b07b96bb61d5256dd525fd388df41 /tests/test_concurrency.py
parentdffe029fd2118edb145916c9f706af6522bd6274 (diff)
downloadpython-coveragepy-git-7b2590ee8013fc45276393495887bc8b039a3b0a.tar.gz
Windows fixes due to data changes
Diffstat (limited to 'tests/test_concurrency.py')
-rw-r--r--tests/test_concurrency.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py
index 3c338980..5fe91b98 100644
--- a/tests/test_concurrency.py
+++ b/tests/test_concurrency.py
@@ -9,6 +9,7 @@ import threading
import coverage
from coverage import env
+from coverage.files import abs_file
from tests.coveragetest import CoverageTest
@@ -151,7 +152,7 @@ class ConcurrencyTest(CoverageTest):
data.read_file(".coverage")
# If the test fails, it's helpful to see this info:
- fname = os.path.abspath("try_it.py")
+ fname = abs_file("try_it.py")
linenos = data.lines(fname)
print("{0}: {1}".format(len(linenos), linenos))
print_simple_annotation(code, linenos)