Skip to content

Commit 21dfba0

Browse files
Fix tests
1 parent 7e1b8a5 commit 21dfba0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/test_generated_cases.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,11 @@ def test_predictions(self):
459459
INSTRUCTION_STATS(OP3);
460460
static_assert(INLINE_CACHE_ENTRIES_OP1 == 0, "incorrect cache size");
461461
_PyStackRef res;
462+
if (xxx) {
463+
UPDATE_MISS_STATS(OP1);
464+
assert(_PyOpcode_Deopt[opcode] == (OP1));
465+
goto PREDICTED_OP1;
466+
}
462467
GO_TO_INSTRUCTION_IF(xxx, OP1, INLINE_CACHE_ENTRIES_OP1);
463468
res = Py_None;
464469
stack_pointer[-1] = res;

0 commit comments

Comments
 (0)