Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove test
  • Loading branch information
youknowone committed Apr 30, 2026
commit c267535c61150df71b01db8bd153bdb15a6370ae
1 change: 0 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"jitted",
"jitting",
"kwonly",
"lolcatz",
"lossily",
"mcache",
"oparg",
Expand Down
27 changes: 5 additions & 22 deletions crates/codegen/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13665,36 +13665,19 @@ def f(filters, text, category, module, lineno, defaultaction, _wm):
fn test_try_except_else_with_finally_keeps_with_handler_before_outer_except() {
let code = compile_exec(
"\
def jumpy(i):
for i in range(10):
print(i)
if i < 4:
continue
if i > 6:
break
else:
print('I can haz else clause?')
while i:
print(i)
i -= 1
if i > 6:
continue
if i < 4:
break
else:
print('Who let lolcatz into this test suite?')
def f(i):
try:
1 / 0
except ZeroDivisionError:
print('Here we go, here we go, here we go...')
print('e')
else:
with i as dodgy:
print('Never reach this')
print('w')
finally:
print('OK, now we\\'re done')
print('d')
",
);
let jumpy = find_code(&code, "jumpy").expect("missing jumpy code");
let jumpy = find_code(&code, "f").expect("missing f code");
let ops: Vec<_> = jumpy
.instructions
.iter()
Expand Down
Loading