Skip to content

Commit

Permalink
tests: try ext_suffix
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Jun 10, 2023
1 parent 4073084 commit 1c3f668
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_cross_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@

from scikit_build_core.builder.cross_compile import set_cross_compile_env

ext_suffix = sysconfig.get_config_var("EXT_SUFFIX")


@pytest.mark.skipif(
sysconfig.get_config_var("SOABI") != "cp311-win_amd64",
reason=f"Only tests 'cp311-win_amd64', got {sysconfig.get_config_var('SOABI')!r}",
ext_suffix != ".cp311-win_amd64.pyd",
reason=f"Only tests '.cp311-win_amd64.pyd', got {ext_suffix!r}",
)
def test_environment():
env = os.environ.copy()
Expand Down

0 comments on commit 1c3f668

Please sign in to comment.