Skip to content

Commit bca1384

Browse files
committed
Add test for graalpy ABI tag
1 parent 1a326a2 commit bca1384

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

tests/test_bdist_wheel.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,18 +285,30 @@ def test_unix_epoch_timestamps(dummy_dist, monkeypatch, tmp_path):
285285
)
286286

287287

288-
def test_get_abi_tag_old(monkeypatch):
288+
def test_get_abi_tag_pypy_old(monkeypatch):
289289
monkeypatch.setattr(tags, "interpreter_name", lambda: "pp")
290290
monkeypatch.setattr(sysconfig, "get_config_var", lambda x: "pypy36-pp73")
291291
assert get_abi_tag() == "pypy36_pp73"
292292

293293

294-
def test_get_abi_tag_new(monkeypatch):
294+
def test_get_abi_tag_pypy_new(monkeypatch):
295295
monkeypatch.setattr(sysconfig, "get_config_var", lambda x: "pypy37-pp73-darwin")
296296
monkeypatch.setattr(tags, "interpreter_name", lambda: "pp")
297297
assert get_abi_tag() == "pypy37_pp73"
298298

299299

300+
def test_get_abi_tag_graalpy(monkeypatch):
301+
monkeypatch.setattr(sysconfig, "get_config_var", lambda x: "graalpy231-310-native-x86_64-linux")
302+
monkeypatch.setattr(tags, "interpreter_name", lambda: "graalpy")
303+
assert get_abi_tag() == "graalpy231_310_native"
304+
305+
306+
def test_get_abi_tag_fallback(monkeypatch):
307+
monkeypatch.setattr(sysconfig, "get_config_var", lambda x: "unknown-python-310")
308+
monkeypatch.setattr(tags, "interpreter_name", lambda: "unknown-python")
309+
assert get_abi_tag() == "unknown_python_310"
310+
311+
300312
def test_platform_with_space(dummy_dist, monkeypatch):
301313
"""Ensure building on platforms with a space in the name succeed."""
302314
monkeypatch.chdir(dummy_dist)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy