Visitar URL original
remove test · RustPython/RustPython@2c31fa9 · GitHub
Skip to content

Commit 2c31fa9

Browse files
committed
remove test
1 parent 238d1e7 commit 2c31fa9

1 file changed

Lines changed: 5 additions & 22 deletions

File tree

‎crates/codegen/src/compile.rs‎

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13665,36 +13665,19 @@ def f(filters, text, category, module, lineno, defaultaction, _wm):
1366513665
fn test_try_except_else_with_finally_keeps_with_handler_before_outer_except() {
1366613666
let code = compile_exec(
1366713667
"\
13668-
def jumpy(i):
13669-
for i in range(10):
13670-
print(i)
13671-
if i < 4:
13672-
continue
13673-
if i > 6:
13674-
break
13675-
else:
13676-
print('I can haz else clause?')
13677-
while i:
13678-
print(i)
13679-
i -= 1
13680-
if i > 6:
13681-
continue
13682-
if i < 4:
13683-
break
13684-
else:
13685-
print('Who let lolcatz into this test suite?')
13668+
def f(i):
1368613669
try:
1368713670
1 / 0
1368813671
except ZeroDivisionError:
13689-
print('Here we go, here we go, here we go...')
13672+
print('e')
1369013673
else:
1369113674
with i as dodgy:
13692-
print('Never reach this')
13675+
print('w')
1369313676
finally:
13694-
print('OK, now we\\'re done')
13677+
print('d')
1369513678
",
1369613679
);
13697-
let jumpy = find_code(&code, "jumpy").expect("missing jumpy code");
13680+
let jumpy = find_code(&code, "f").expect("missing f code");
1369813681
let ops: Vec<_> = jumpy
1369913682
.instructions
1370013683
.iter()

0 commit comments

Comments
 (0)