Skip to content

Commit 4e4946d

Browse files
committed
Fix test cases
1 parent 620dde2 commit 4e4946d

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Lib/test/test_generated_cases.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -587,9 +587,7 @@ def test_error_if_pop(self):
587587
left = stack_pointer[-2];
588588
SPAM(left, right);
589589
if (cond) {
590-
stack_pointer += -2;
591-
assert(WITHIN_STACK_BOUNDS());
592-
goto label;
590+
goto pop_2_label;
593591
}
594592
res = 0;
595593
stack_pointer[-2] = res;
@@ -620,10 +618,7 @@ def test_error_if_pop_with_result(self):
620618
left = stack_pointer[-2];
621619
res = SPAM(left, right);
622620
if (cond) {
623-
stack_pointer[-2] = res;
624-
stack_pointer += -1;
625-
assert(WITHIN_STACK_BOUNDS());
626-
goto label;
621+
goto pop_2_label;
627622
}
628623
stack_pointer[-2] = res;
629624
stack_pointer += -1;
@@ -1406,9 +1401,7 @@ def test_pop_on_error_peeks(self):
14061401
{
14071402
// Mark j and k as used
14081403
if (cond) {
1409-
stack_pointer += -2;
1410-
assert(WITHIN_STACK_BOUNDS());
1411-
goto error;
1404+
goto pop_2_error;
14121405
}
14131406
}
14141407
stack_pointer += -2;

0 commit comments

Comments
 (0)