https://github.com/python/cpython/commit/3e66171efa3ca6b334931f6f9437d08065751352
commit: 3e66171efa3ca6b334931f6f9437d08065751352
branch: main
author: Petr Viktorin <[email protected]>
committer: encukou <[email protected]>
date: 2026-01-22T10:40:34+01:00
summary:
gh-142913: Revert adding test_replaced_interpreter (GH-144110)
This partially reverts commit 4d5a676aa0811563ea78ae58ef89cdc0295bf7ed
(GH-142911)
The removed test fails when re-run in --huntrleaks mode.
files:
M Lib/test/test_capi/test_misc.py
diff --git a/Lib/test/test_capi/test_misc.py b/Lib/test/test_capi/test_misc.py
index c9c757857a8a5d..3997acbdf84695 100644
--- a/Lib/test/test_capi/test_misc.py
+++ b/Lib/test/test_capi/test_misc.py
@@ -2857,24 +2857,6 @@ def func():
names = ["func", "outer", "outer", "inner", "inner", "outer", "inner"]
self.do_test(func, names)
- def test_replaced_interpreter(self):
- def inner():
- yield 'abc'
- def outer():
- yield from inner()
- def func():
- list(outer())
- _testinternalcapi.set_eval_frame_interp()
- try:
- func()
- finally:
- _testinternalcapi.set_eval_frame_default()
-
- stats = _testinternalcapi.get_eval_frame_stats()
-
- self.assertEqual(stats["resumes"], 5)
- self.assertEqual(stats["loads"], 5)
-
@unittest.skipUnless(support.Py_GIL_DISABLED, 'need Py_GIL_DISABLED')
class TestPyThreadId(unittest.TestCase):
_______________________________________________
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]