https://github.com/python/cpython/commit/58a7ff9c689615ab931e9a6152564def75c03801
commit: 58a7ff9c689615ab931e9a6152564def75c03801
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2026-08-30T22:07:39Z
summary:

[3.13] gh-156676: Skip `test_pyinit_function_raises_exception` for other 
implementations (GH-156684) (GH-156688)

See also https://github.com/RustPython/RustPython/pull/8605

(cherry picked from commit 03503dccd0aa6d8895614e80ae9c78c03c813d45)

Co-authored-by: sai <[email protected]>

files:
M Lib/test/test_import/__init__.py

diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py
index 6a2557d522b698f..9f2bd18a5935fb3 100644
--- a/Lib/test/test_import/__init__.py
+++ b/Lib/test/test_import/__init__.py
@@ -2578,6 +2578,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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to