summaryrefslogtreecommitdiff
path: root/coverage/env.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-06-06 12:10:38 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-06-06 12:42:07 -0400
commit95c582fd8038a7158ff96baff4186f5fb601afd4 (patch)
treeb870edb23108bdd473df3781d65c74d547bc7a78 /coverage/env.py
parent734ee8760df75427753e54b4d8078cfa06484da3 (diff)
downloadpython-coveragepy-git-95c582fd8038a7158ff96baff4186f5fb601afd4.tar.gz
feat: add support for Python 3.10 match-case statements
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 81f61794..89abbb2e 100644
--- a/coverage/env.py
+++ b/coverage/env.py
@@ -102,6 +102,9 @@ class PYBEHAVIOR:
# When leaving a with-block, do we visit the with-line again for the exit?
exit_through_with = (PYVERSION >= (3, 10, 0, 'beta'))
+ # Match-case construct.
+ match_case = (PYVERSION >= (3, 10))
+
# Coverage.py specifics.
# Are we using the C-implemented trace function?