diff --git a/test/test_windows.py b/test/test_windows.py index 610cdc6d..0d1231b7 100644 --- a/test/test_windows.py +++ b/test/test_windows.py @@ -1,3 +1,5 @@ +import textwrap + import pytest from . import test_projects, utils @@ -5,10 +7,20 @@ from . import test_projects, utils basic_project = test_projects.new_c_project() -def test_wheel_tag_is_correct_when_using_windows_cross_compile(tmp_path): +@pytest.mark.parametrize("use_pyproject_toml", [True, False]) +def test_wheel_tag_is_correct_when_using_windows_cross_compile(tmp_path, use_pyproject_toml): if utils.platform != "windows": pytest.skip("This test is only relevant to Windows") + if use_pyproject_toml: + basic_project.files["pyproject.toml"] = textwrap.dedent( + """ + [build-system] + requires = ["setuptools"] + build-backend = "setuptools.build_meta" + """ + ) + project_dir = tmp_path / "project" basic_project.generate(project_dir)