From 157d420e9424282f03f4c8d3b325d073a152fff8 Mon Sep 17 00:00:00 2001 From: sai Date: Mon, 31 Aug 2026 03:13:38 +0530 Subject: [PATCH] gh-156676: Skip `test_pyinit_function_raises_exception` for other implementations (GH-156684) See also https://github.com/RustPython/RustPython/pull/8605 (cherry picked from commit 03503dccd0aa6d8895614e80ae9c78c03c813d45) Co-authored-by: sai --- Lib/test/test_import/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index ff19fd1c1c91e6..1d7f69d0a72d0e 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -2559,6 +2559,7 @@ def test_disallowed_reimport(self): excsnap = _interpreters.run_string(interpid, script) self.assertIsNot(excsnap, None) + @cpython_only @requires_subinterpreters def test_pyinit_function_raises_exception(self): # gh-144601: PyInit functions that raised exceptions would cause a