From 3df427ce50ba9b2ba0b2e408842e2ce2710b71b2 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Sat, 24 Jan 2026 17:10:51 +0800 Subject: [PATCH] Skip tests for subprocess --- tests/test_custom_type_setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_custom_type_setup.py b/tests/test_custom_type_setup.py index 979ba6259..83a10ecac 100644 --- a/tests/test_custom_type_setup.py +++ b/tests/test_custom_type_setup.py @@ -2,6 +2,7 @@ from __future__ import annotations import gc import os +import sys import weakref import pytest @@ -51,6 +52,10 @@ def test_indirect_cycle(gc_tester): gc_tester(obj) +@pytest.mark.skipif( + env.IOS or sys.platform.startswith("emscripten"), + reason="Requires subprocess support", +) @pytest.mark.skipif("env.PYPY or env.GRAALPY") def test_py_cast_useable_on_shutdown(): env.check_script_success_in_subprocess(