Skip to content

Commit 3e66171

Browse files
authored
gh-142913: Revert adding test_replaced_interpreter (GH-144110)
This partially reverts commit 4d5a676 (GH-142911) The removed test fails when re-run in --huntrleaks mode.
1 parent 0b08438 commit 3e66171

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Lib/test/test_capi/test_misc.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2857,24 +2857,6 @@ def func():
28572857
names = ["func", "outer", "outer", "inner", "inner", "outer", "inner"]
28582858
self.do_test(func, names)
28592859

2860-
def test_replaced_interpreter(self):
2861-
def inner():
2862-
yield 'abc'
2863-
def outer():
2864-
yield from inner()
2865-
def func():
2866-
list(outer())
2867-
_testinternalcapi.set_eval_frame_interp()
2868-
try:
2869-
func()
2870-
finally:
2871-
_testinternalcapi.set_eval_frame_default()
2872-
2873-
stats = _testinternalcapi.get_eval_frame_stats()
2874-
2875-
self.assertEqual(stats["resumes"], 5)
2876-
self.assertEqual(stats["loads"], 5)
2877-
28782860

28792861
@unittest.skipUnless(support.Py_GIL_DISABLED, 'need Py_GIL_DISABLED')
28802862
class TestPyThreadId(unittest.TestCase):

0 commit comments

Comments
 (0)