Skip to content

Commit 8349dd3

Browse files
committed
tests: fix Windows PyPy
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 6f98698 commit 8349dd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_pyproject_abi3.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ def test_abi3_wheel(tmp_path, monkeypatch, virtualenv):
5151
(so_file,) = file_names
5252

5353
if sysconfig.get_platform().startswith("win"):
54-
assert so_file == "abi3_example.pyd"
54+
if sys.implementation.name == "cpython":
55+
assert so_file == "abi3_example.pyd"
56+
else:
57+
assert so_file.endswith(".pyd")
5558
elif sys.platform.startswith("cygwin"):
5659
if abi3:
5760
assert so_file == "abi3_example.abi3.dll"

0 commit comments

Comments
 (0)