summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-02-06 18:36:24 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-02-06 18:57:25 -0500
commit5f2914159e8cf4c5130dcd269c61e12ba0050190 (patch)
treed837ffd836f8b53b7a847a8c189cbac13b85c86f /tests
parentb60b789717d035cf6247428916a3a1a4de526781 (diff)
downloadpython-coveragepy-git-5f2914159e8cf4c5130dcd269c61e12ba0050190.tar.gz
test: dropping old Python versions mean we no longer need optimize_if_not_debug=0
Diffstat (limited to 'tests')
-rw-r--r--tests/test_arcs.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index 731e8427..7991a4ad 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -1520,16 +1520,14 @@ class OptimizedIfTest(CoverageTest):
)
def test_if_not_debug(self):
- arcz_missing = ""
- if env.PYBEHAVIOR.optimize_if_not_debug == 3:
- arcz = ".1 12 23 32 37 72 28 8."
+ if env.PYBEHAVIOR.optimize_if_not_debug == 1:
+ arcz = ".1 12 23 34 42 37 72 28 8."
elif env.PYBEHAVIOR.optimize_if_not_debug == 2:
arcz = ".1 12 23 35 52 37 72 28 8."
- elif env.PYBEHAVIOR.optimize_if_not_debug == 1:
- arcz = ".1 12 23 34 42 37 72 28 8."
else:
- arcz = ".1 12 23 34 45 42 52 37 72 28 8."
- arcz_missing = "45 52"
+ assert env.PYBEHAVIOR.optimize_if_not_debug == 3
+ arcz = ".1 12 23 32 37 72 28 8."
+
self.check_coverage("""\
lines = set()
for value in [True, False]:
@@ -1541,7 +1539,6 @@ class OptimizedIfTest(CoverageTest):
assert lines == set([7])
""",
arcz=arcz,
- arcz_missing=arcz_missing,
)