Skip to content

Commit

Permalink
Binding tests: Use PyPy_GetVersion() on PyPy
Browse files Browse the repository at this point in the history
`Py_GetVersion()` does not exist on PyPy, but `PyPy_GetVersion()` does.
  • Loading branch information
gmarkall committed Oct 12, 2023
1 parent 6fc1466 commit dbc1bf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvmlite/tests/test_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ def no_de_locale():
}}
"""

if platform.python_implementation() == 'PyPy':
asm_getversion = asm_getversion.replace('Py_GetVersion', 'PyPy_GetVersion')

# `fadd` used on integer inputs
asm_parse_error = r"""
; ModuleID = '<string>'
Expand Down

0 comments on commit dbc1bf1

Please sign in to comment.