summaryrefslogtreecommitdiff
path: root/tests/test_concurrency.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-08-10 16:39:22 -0400
committerNed Batchelder <ned@nedbatchelder.com>2018-08-10 16:39:22 -0400
commit8562aeb29eddf3349f5c363c1842f9822b18a450 (patch)
tree7f4c0f16843c4f9b78cc49c4f6d0354a0d8a0f91 /tests/test_concurrency.py
parent90bb6a77e02cbac6a23723b5907d5f59d1db1b82 (diff)
downloadpython-coveragepy-git-8562aeb29eddf3349f5c363c1842f9822b18a450.tar.gz
Move line_counts out of the data classes
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 a4f700ed..9e2d73d9 100644
--- a/tests/test_concurrency.py
+++ b/tests/test_concurrency.py
@@ -14,6 +14,7 @@ from flaky import flaky
import coverage
from coverage import env
from coverage.backward import import_local_file
+from coverage.data import line_counts
from coverage.files import abs_file
from tests.coveragetest import CoverageTest
@@ -245,7 +246,7 @@ class ConcurrencyTest(CoverageTest):
print_simple_annotation(code, linenos)
lines = line_count(code)
- self.assertEqual(data.line_counts()['try_it.py'], lines)
+ self.assertEqual(line_counts(data)['try_it.py'], lines)
def test_threads(self):
code = (THREAD + SUM_RANGE_Q + PRINT_SUM_RANGE).format(QLIMIT=self.QLIMIT)