diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index 9f6dec7d1c5802..67bf9143ee3fd8 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -2541,6 +2541,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