Skip to content

Commit 1e6b2e4

Browse files
Address review partially
1 parent ccc3d64 commit 1e6b2e4

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2642,7 +2642,7 @@ def test_next_instr_for_exception_handler_set(self):
26422642
def f():
26432643
for i in range(TIER2_THRESHOLD + 3):
26442644
try:
2645-
g(i)
2645+
undefined_variable(i)
26462646
except Exception:
26472647
pass
26482648

Python/bytecodes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5384,6 +5384,7 @@ dummy_func(
53845384

53855385
tier2 op(_ERROR_POP_N, (target/2 --)) {
53865386
assert(oparg == 0);
5387+
frame->instr_ptr = _PyFrame_GetBytecode(frame) + target;
53875388
SYNC_SP();
53885389
GOTO_TIER_ONE(NULL);
53895390
}

Python/executor_cases.c.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)