From 13f15b0e4316865287d4b5ae1d4f856dac9f9ecb Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 23 Dec 2020 17:34:09 -0500 Subject: Py 3.10 doesn't jump back from finally any more --- coverage/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coverage/env.py b/coverage/env.py index 5c612413..7b845f66 100644 --- a/coverage/env.py +++ b/coverage/env.py @@ -72,7 +72,7 @@ class PYBEHAVIOR(object): # block, does the finally block do the break/continue/return (pre-3.8), or # does the finally jump back to the break/continue/return (3.8) to do the # work? - finally_jumps_back = (PYVERSION >= (3, 8)) + finally_jumps_back = ((3, 8) <= PYVERSION < (3, 10)) # When a function is decorated, does the trace function get called for the # @-line and also the def-line (new behavior in 3.8)? Or just the @-line -- cgit v1.2.1