diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2020-12-23 17:34:09 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-10 09:46:18 -0500 |
commit | 13f15b0e4316865287d4b5ae1d4f856dac9f9ecb (patch) | |
tree | 32fb4e48f5c02aff9f11797b7c1fe807d045b6e8 /coverage/env.py | |
parent | 0482302f1b2afbf9e638db713a7aa11cb272792d (diff) | |
download | python-coveragepy-git-13f15b0e4316865287d4b5ae1d4f856dac9f9ecb.tar.gz |
Py 3.10 doesn't jump back from finally any more
Diffstat (limited to 'coverage/env.py')
-rw-r--r-- | coverage/env.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |