Skip ARM64 tests automatically with warning, and improved cleanup

This commit is contained in:
Steve Dower
2022-08-31 21:08:15 +01:00
parent 9a4e8f671f
commit f277099850
2 changed files with 107 additions and 93 deletions
-10
View File
@@ -72,13 +72,6 @@ class TestSpam(TestCase):
'''
ADD_ENV: dict[str, str] = {}
if utils.platform == "windows":
if platform.machine() != "ARM64":
ADD_ENV["CIBW_TEST_SKIP"] = "*-win_arm64 " + ADD_ENV.get("CIBW_TEST_SKIP", "")
def test(tmp_path):
project_dir = tmp_path / "project"
project_with_a_test.generate(project_dir)
@@ -92,7 +85,6 @@ def test(tmp_path):
# mac/linux.
"CIBW_TEST_COMMAND": "false || pytest {project}/test",
"CIBW_TEST_COMMAND_WINDOWS": "COLOR 00 || pytest {project}/test",
**ADD_ENV,
},
)
@@ -114,7 +106,6 @@ def test_extras_require(tmp_path):
# mac/linux.
"CIBW_TEST_COMMAND": "false || pytest {project}/test",
"CIBW_TEST_COMMAND_WINDOWS": "COLOR 00 || pytest {project}/test",
**ADD_ENV,
},
)
@@ -152,7 +143,6 @@ def test_failing_test(tmp_path):
# problems with this, so let's check that.
"CIBW_MANYLINUX_I686_IMAGE": "manylinux1",
"CIBW_MANYLINUX_X86_64_IMAGE": "manylinux1",
**ADD_ENV,
},
)