summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-06-18 21:50:50 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-06-19 06:00:35 -0400
commit7a7a93d7abc710f11c93a6f0a4edbea7cb0c47e5 (patch)
treeca8c5f089d8bf59b66ed65d99d96e0e5a4c86a48 /tests/test_parser.py
parentf36c3acd2f236cebbac254fc9c71e2080cbfece2 (diff)
downloadpython-coveragepy-git-7a7a93d7abc710f11c93a6f0a4edbea7cb0c47e5.tar.gz
Move arcz_to_arcs to misc so we can use it elsewhere
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r--tests/test_parser.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 6d86822f..6fd31ca5 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -8,7 +8,7 @@ import textwrap
from tests.coveragetest import CoverageTest
from coverage import env
-from coverage.misc import NotPython
+from coverage.misc import arcz_to_arcs, NotPython
from coverage.parser import PythonParser
@@ -201,16 +201,16 @@ class PythonParserTest(CoverageTest):
if env.PYBEHAVIOR.trace_decorated_def:
expected_statements = {1, 2, 4, 5, 8, 9, 10}
- expected_arcs = set(self.arcz_to_arcs(".1 14 45 58 89 9. .2 2. -8A A-8"))
+ expected_arcs = set(arcz_to_arcs(".1 14 45 58 89 9. .2 2. -8A A-8"))
expected_exits = {1: 1, 2: 1, 4: 1, 5: 1, 8: 1, 9: 1, 10: 1}
else:
expected_statements = {1, 2, 4, 8, 10}
- expected_arcs = set(self.arcz_to_arcs(".1 14 48 8. .2 2. -8A A-8"))
+ expected_arcs = set(arcz_to_arcs(".1 14 48 8. .2 2. -8A A-8"))
expected_exits = {1: 1, 2: 1, 4: 1, 8: 1, 10: 1}
if env.PYVERSION >= (3, 7, 0, 'beta', 5):
# 3.7 changed how functions with only docstrings are numbered.
- expected_arcs.update(set(self.arcz_to_arcs("-46 6-4")))
+ expected_arcs.update(set(arcz_to_arcs("-46 6-4")))
expected_exits.update({6: 1})
self.assertEqual(expected_statements, parser.statements)