Skip to content

Commit ec3bba1

Browse files
committed
Skip subprocess tests on Android
1 parent 2096144 commit ec3bba1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/env.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import sys
55
import sysconfig
66

7+
import pytest
8+
79
ANDROID = sys.platform.startswith("android")
810
IOS = sys.platform.startswith("ios")
911
LINUX = sys.platform.startswith("linux")
@@ -50,6 +52,9 @@ def check_script_success_in_subprocess(code: str, *, rerun: int = 8) -> None:
5052
import sys
5153
import textwrap
5254

55+
if ANDROID or IOS or sys.platform.startswith("emscripten"):
56+
pytest.skip("Requires subprocess support")
57+
5358
code = textwrap.dedent(code).strip()
5459
try:
5560
for _ in range(rerun): # run flakily failing test multiple times

tests/test_custom_type_setup.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import gc
44
import os
5-
import sys
65
import weakref
76

87
import pytest
@@ -52,10 +51,6 @@ def test_indirect_cycle(gc_tester):
5251
gc_tester(obj)
5352

5453

55-
@pytest.mark.skipif(
56-
env.IOS or sys.platform.startswith("emscripten"),
57-
reason="Requires subprocess support",
58-
)
5954
@pytest.mark.skipif("env.PYPY or env.GRAALPY")
6055
def test_py_cast_useable_on_shutdown():
6156
"""Test that py::cast works during interpreter shutdown.

0 commit comments

Comments
 (0)