diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-14 10:01:03 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-14 10:01:03 -0500 |
commit | 11ac7823c5b2239b9b9a38c7de0650eb1f9c99c0 (patch) | |
tree | 0dd176d31dda4244a8b23e1bcc466e30ed7f861d /coverage/env.py | |
parent | 690541622755562969d07add1b1bdbeb3fdfe064 (diff) | |
download | python-coveragepy-11ac7823c5b2239b9b9a38c7de0650eb1f9c99c0.tar.gz |
Reporting doesn't work on Jython, so don't run reporting tests there.
Diffstat (limited to 'coverage/env.py')
-rw-r--r-- | coverage/env.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/coverage/env.py b/coverage/env.py index 6db3b85..528c774 100644 --- a/coverage/env.py +++ b/coverage/env.py @@ -4,6 +4,7 @@ """Determine facts about the environment.""" import os +import platform import sys # Operating systems. @@ -11,10 +12,12 @@ WINDOWS = sys.platform == "win32" LINUX = sys.platform == "linux2" # Python implementations. -PYPY = '__pypy__' in sys.builtin_module_names +PYPY = (platform.python_implementation() == 'PyPy') if PYPY: PYPYVERSION = sys.pypy_version_info +JYTHON = (platform.python_implementation() == 'Jython') + # Python versions. PYVERSION = sys.version_info PY2 = PYVERSION < (3, 0) |