diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2023-12-15 17:27:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 17:27:57 (GMT) |
commit | d07483292b115a5a0e9b9b09f3ec1000ce879986 (patch) | |
tree | 5ae7232b2bf4dd03ccb615a02eeec119521a1836 /Lib/test/test_dis.py | |
parent | 1addde0c698f7f8eb716bcecf63d119e19e1ecda (diff) | |
download | cpython-d07483292b115a5a0e9b9b09f3ec1000ce879986.zip cpython-d07483292b115a5a0e9b9b09f3ec1000ce879986.tar.gz cpython-d07483292b115a5a0e9b9b09f3ec1000ce879986.tar.bz2 |
GH-112383: Fix test_loop_quicken when an executor is installed (GH-113153)
Diffstat (limited to 'Lib/test/test_dis.py')
-rw-r--r-- | Lib/test/test_dis.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index 0c7fd60..e4c7e9b 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -1210,8 +1210,13 @@ class DisTests(DisTestBase): got = self.get_disassembly(loop_test, adaptive=True) expected = dis_loop_test_quickened_code if _testinternalcapi.get_optimizer(): - # We *may* see ENTER_EXECUTOR in the disassembly - got = got.replace("ENTER_EXECUTOR", "JUMP_BACKWARD ") + # We *may* see ENTER_EXECUTOR in the disassembly. This is a + # temporary hack to keep the test working until dis is able to + # handle the instruction correctly (GH-112383): + got = got.replace( + "ENTER_EXECUTOR 16", + "JUMP_BACKWARD 16 (to L1)", + ) self.do_disassembly_compare(got, expected) @cpython_only |