Skip to content

Commit 13f15b0

Browse files
committed
Py 3.10 doesn't jump back from finally any more
1 parent 0482302 commit 13f15b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coverage/env.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class PYBEHAVIOR(object):
7272
# block, does the finally block do the break/continue/return (pre-3.8), or
7373
# does the finally jump back to the break/continue/return (3.8) to do the
7474
# work?
75-
finally_jumps_back = (PYVERSION >= (3, 8))
75+
finally_jumps_back = ((3, 8) <= PYVERSION < (3, 10))
7676

7777
# When a function is decorated, does the trace function get called for the
7878
# @-line and also the def-line (new behavior in 3.8)? Or just the @-line

0 commit comments

Comments
 (0)