summaryrefslogtreecommitdiff
path: root/coverage/env.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/env.py')
-rw-r--r--coverage/env.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/coverage/env.py b/coverage/env.py
index cc8ca8b7..81f61794 100644
--- a/coverage/env.py
+++ b/coverage/env.py
@@ -99,6 +99,9 @@ class PYBEHAVIOR:
# Are "if 0:" lines (and similar) kept in the compiled code?
keep_constant_test = pep626
+ # When leaving a with-block, do we visit the with-line again for the exit?
+ exit_through_with = (PYVERSION >= (3, 10, 0, 'beta'))
+
# Coverage.py specifics.
# Are we using the C-implemented trace function?