From 9cd639ba80893eed78f55890799113c4a4185854 Mon Sep 17 00:00:00 2001 From: sai Date: Mon, 31 Aug 2026 02:36:31 +0530 Subject: [PATCH] gh-156676: Fix test for non-CPython implementations --- 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 7e92028cb955cb..65c425c1d29721 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -2544,6 +2544,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