Re-enable Android tests in CIBW workflow (#6001)

* Re-enable Android tests in CIBW workflow

* Skip subprocess tests on Android

* Remove Android workarounds no longer necessary with current cibuildwheel version

* Skip more subprocess tests on Android
This commit is contained in:
Malcolm Smith
2026-03-02 20:03:46 +00:00
committed by GitHub
parent 9d8c57fee2
commit cd538ed118
4 changed files with 8 additions and 23 deletions

View File

@@ -4,6 +4,8 @@ import platform
import sys
import sysconfig
import pytest
ANDROID = sys.platform.startswith("android")
IOS = sys.platform.startswith("ios")
LINUX = sys.platform.startswith("linux")
@@ -50,6 +52,9 @@ def check_script_success_in_subprocess(code: str, *, rerun: int = 8) -> None:
import sys
import textwrap
if ANDROID or IOS or sys.platform.startswith("emscripten"):
pytest.skip("Requires subprocess support")
code = textwrap.dedent(code).strip()
try:
for _ in range(rerun): # run flakily failing test multiple times