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
commita2c2e4365a9f1dde956319d5bc75bff6eef7ddfd (patch)
tree112f9339e7b6a76320eddba3249803794499634d /tests/test_concurrency.py
parent5c98172ff46513e182196b59b2b432b416ce2010 (diff)
downloadpython-coveragepy-a2c2e4365a9f1dde956319d5bc75bff6eef7ddfd.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 3c33898..5fe91b9 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)