mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user