summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-02-05 13:46:16 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-02-06 11:09:53 -0500
commitac8c29a77c0d7d4a1a0b6b694d2951e252732bcb (patch)
tree64e040485b2386b26af2cf201bdaa9f758252d48 /tests/test_arcs.py
parent82ae658412ede7519d6212724e45714f8daa765e (diff)
downloadpython-coveragepy-git-ac8c29a77c0d7d4a1a0b6b694d2951e252732bcb.tar.gz
test: make if_not_debug optimization testing a little more rational
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r--tests/test_arcs.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index 0141841a..731e8427 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -1521,13 +1521,11 @@ class OptimizedIfTest(CoverageTest):
def test_if_not_debug(self):
arcz_missing = ""
- if env.PYBEHAVIOR.pep626:
- arcz = ".1 12 23 34 42 37 72 28 8."
- elif env.PYBEHAVIOR.optimize_if_not_debug3:
+ if env.PYBEHAVIOR.optimize_if_not_debug == 3:
arcz = ".1 12 23 32 37 72 28 8."
- elif env.PYBEHAVIOR.optimize_if_not_debug2:
+ 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:
+ 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."