Skip to content

Commit 1c3f668

Browse files
committed
tests: try ext_suffix
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 4073084 commit 1c3f668

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_cross_compile.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99

1010
from scikit_build_core.builder.cross_compile import set_cross_compile_env
1111

12+
ext_suffix = sysconfig.get_config_var("EXT_SUFFIX")
13+
1214

1315
@pytest.mark.skipif(
14-
sysconfig.get_config_var("SOABI") != "cp311-win_amd64",
15-
reason=f"Only tests 'cp311-win_amd64', got {sysconfig.get_config_var('SOABI')!r}",
16+
ext_suffix != ".cp311-win_amd64.pyd",
17+
reason=f"Only tests '.cp311-win_amd64.pyd', got {ext_suffix!r}",
1618
)
1719
def test_environment():
1820
env = os.environ.copy()

0 commit comments

Comments
 (0)