https://github.com/python/cpython/commit/ad2e2c0617e4b08ecca940634378a43bdc45fdf6
commit: ad2e2c0617e4b08ecca940634378a43bdc45fdf6
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-08-31T09:18:16+03:00
summary:

[3.15] gh-156676: Skip `test_pyinit_function_raises_exception` for other 
implementations (GH-156684) (#156686)

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 <[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 9f6dec7d1c5802c..67bf9143ee3fd80 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

_______________________________________________
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