summaryrefslogtreecommitdiff
path: root/coverage/env.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-03-24 12:21:10 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-03-24 12:21:10 -0400
commitce55ad5567d461cebf7bd73d9662c6ac36696106 (patch)
tree7a0832363a715b6e7f2257ca8ad851ed20ead154 /coverage/env.py
parenta868dd01713cb3020bd768830fca7d1c0eef1720 (diff)
downloadpython-coveragepy-git-ce55ad5567d461cebf7bd73d9662c6ac36696106.tar.gz
Move some version conditionals to PYBEHAVIOR
Diffstat (limited to 'coverage/env.py')
-rw-r--r--coverage/env.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/coverage/env.py b/coverage/env.py
index d97b193c..27602431 100644
--- a/coverage/env.py
+++ b/coverage/env.py
@@ -28,6 +28,12 @@ PY3 = PYVERSION >= (3, 0)
class PYBEHAVIOR(object):
"""Flags indicating this Python's behavior."""
+ # Do .pyc files have the source file size recorded in them?
+ size_in_pyc = (PYVERSION >= (3, 3))
+
+ # Do .pyc files conform to PEP 552? Hash-based pyc's.
+ hashed_pyc_pep552 = (PYVERSION >= (3, 7, 0, 'alpha', 4))
+
# When a break/continue/return statement in a try block jumps to a finally
# 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