Skip to content

Commit

Permalink
test that current and future PyPy SOABI tags work as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Nov 2, 2022
1 parent 47ff8bf commit c28673c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/test_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,17 @@ def test__generic_abi_jp(self, monkeypatch):
monkeypatch.setattr(tags, "interpreter_name", lambda: "other")
assert tags._generic_abi(sys.version_info[:2]) == ["return exactly this"]

def test__generic_abi_linux_pypy(self, monkeypatch):
def test__generic_abi_linux_pypy_old(self, monkeypatch):
# issue gh-606
config = {
"Py_DEBUG": False,
"SOABI": "pypy39-pp73",
}
monkeypatch.setattr(sysconfig, "get_config_var", config.__getitem__)
monkeypatch.setattr(tags, "interpreter_name", lambda: "pp")
assert tags._generic_abi(sys.version_info[:2]) == ["pypy39_pp73"]

def test__generic_abi_linux_pypy_new(self, monkeypatch):
# issue gh-606
config = {
"Py_DEBUG": False,
Expand Down

0 comments on commit c28673c

Please sign in to comment.