coveragepy can only work on CPython or PyPy? · Issue #1474 · nedbat/coveragepy (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@timfel

Description

@timfel

At the top of the env.py file, Jython and IronPython are recognized besides CPython and PyPy. However, line 88 (linked in this issue) assumes that coveragepy runs on either PyPy or CPython - if CPYTHON is False (as it is on e.g. Jython and IronPython, but also on GraalPy), this raises NameError: name 'PYPYVERSION' is not defined

report_absolute_files = ((CPYTHON or (PYPYVERSION >= (7, 3, 10))) and PYVERSION >= (3, 9))