diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-19 20:39:44 -0700 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-19 20:44:45 -0700 |
commit | 4668a92c8d8f467fbe6291fa4f56e96e19709e90 (patch) | |
tree | 972077516e2852ee5b4297f49d73c32f26a07951 /coverage/env.py | |
parent | a3c8683f8e46590c145e16c1aebf7a7766513890 (diff) | |
download | python-coveragepy-git-4668a92c8d8f467fbe6291fa4f56e96e19709e90.tar.gz |
fix: can't use PYPYVERSION without checking PYPY first
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 13411699..820016f4 100644 --- a/coverage/env.py +++ b/coverage/env.py @@ -85,7 +85,10 @@ class PYBEHAVIOR: nix_while_true = (PYVERSION >= (3, 8)) # CPython 3.9a1 made sys.argv[0] and other reported files absolute paths. - report_absolute_files = ((CPYTHON or (PYPYVERSION >= (7, 3, 10))) and PYVERSION >= (3, 9)) + report_absolute_files = ( + (CPYTHON or (PYPY and PYPYVERSION >= (7, 3, 10))) + and PYVERSION >= (3, 9) + ) # Lines after break/continue/return/raise are no longer compiled into the # bytecode. They used to be marked as missing, now they aren't executable. |