8000 GH-112383: Fix test_loop_quicken when an executor is installed (GH-11… · python/cpython@d074832 · GitHub
[go: up one dir, main page]

Skip to content

Commit d074832

Browse files
authored
GH-112383: Fix test_loop_quicken when an executor is installed (GH-113153)
1 parent 1addde0 commit d074832

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Lib/test/test_dis.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,8 +1210,13 @@ def test_loop_quicken(self):
12101210
got = self.get_disassembly(loop_test, adaptive=True)
12111211
expected = dis_loop_test_quickened_code
12121212
if _testi 7D19 nternalcapi.get_optimizer():
1213-
# We *may* see ENTER_EXECUTOR in the disassembly
1214-
got = got.replace("ENTER_EXECUTOR", "JUMP_BACKWARD ")
1213+
# We *may* see ENTER_EXECUTOR in the disassembly. This is a
1214+
# temporary hack to keep the test working until dis is able to
1215+
# handle the instruction correctly (GH-112383):
1216+
got = got.replace(
1217+
"ENTER_EXECUTOR 16",
1218+
"JUMP_BACKWARD 16 (to L1)",
1219+
)
12151220
self.do_disassembly_compare(got, expected)
12161221

12171222
@cpython_only

0 commit comments

Comments
 (0)
0