summaryrefslogtreecommitdiff
path: root/coverage/env.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-12-31 11:22:42 -0500
committerNed Batchelder <ned@nedbatchelder.com>2019-12-31 11:58:08 -0500
commit14b76135d39bbb11e42a49565396b13d020dd87a (patch)
treeb16f2478361a1c768b0c677b5a0c6462ac5df9d6 /coverage/env.py
parenta6912d67648c1acdae73db7c2b772b09fb236c54 (diff)
downloadpython-coveragepy-git-14b76135d39bbb11e42a49565396b13d020dd87a.tar.gz
xfail a test due to a PyPy3 7.3.0 change
Diffstat (limited to 'coverage/env.py')
-rw-r--r--coverage/env.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/coverage/env.py b/coverage/env.py
index 1c09caf1..175b3092 100644
--- a/coverage/env.py
+++ b/coverage/env.py
@@ -11,19 +11,22 @@ import sys
WINDOWS = sys.platform == "win32"
LINUX = sys.platform.startswith("linux")
+# Python versions.
+PYVERSION = sys.version_info
+PY2 = PYVERSION < (3, 0)
+PY3 = PYVERSION >= (3, 0)
+
# Python implementations.
PYPY = (platform.python_implementation() == 'PyPy')
if PYPY:
PYPYVERSION = sys.pypy_version_info
+PYPY2 = PYPY and PY2
+PYPY3 = PYPY and PY3
+
JYTHON = (platform.python_implementation() == 'Jython')
IRONPYTHON = (platform.python_implementation() == 'IronPython')
-# Python versions.
-PYVERSION = sys.version_info
-PY2 = PYVERSION < (3, 0)
-PY3 = PYVERSION >= (3, 0)
-
# Python behavior
class PYBEHAVIOR(object):
"""Flags indicating this Python's behavior."""