| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2857,24 +2857,6 @@ def func(): | |||
| 2857 | 2857 | names = ["func", "outer", "outer", "inner", "inner", "outer", "inner"] | |
| 2858 | 2858 | self.do_test(func, names) | |
| 2859 | 2859 | ||
| 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 | - | ||
| 2878 | 2860 | ||
| 2879 | 2861 | @unittest.skipUnless(support.Py_GIL_DISABLED, 'need Py_GIL_DISABLED') | |
| 2880 | 2862 | class TestPyThreadId(unittest.TestCase): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments