Skip to content

Commit a7d137a

Browse files
committed
Fixup declarations and test output
1 parent 0bf3686 commit a7d137a

File tree

7 files changed

+573
-10680
lines changed

7 files changed

+573
-10680
lines changed

Lib/test/test_generated_cases.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ def test_error_if_plain_with_comment(self):
457457
if (cond) {
458458
JUMP_TO_LABEL(label);
459459
}
460-
// Comment is ok
461460
DISPATCH();
462461
}
463462
"""
@@ -586,7 +585,6 @@ def test_suppress_dispatch(self):
586585
587586
LABEL(somewhere)
588587
{
589-
590588
}
591589
"""
592590
self.run_cases_test(input, output)
@@ -1351,7 +1349,6 @@ def test_pop_on_error_peeks(self):
13511349
}
13521350
// THIRD
13531351
{
1354-
// Mark j and k as used
13551352
if (cond) {
13561353
JUMP_TO_LABEL(pop_2_error);
13571354
}
@@ -1757,17 +1754,14 @@ def test_complex_label(self):
17571754
output = """
17581755
LABEL(other_label)
17591756
{
1760-
17611757
}
17621758
17631759
LABEL(other_label2)
17641760
{
1765-
17661761
}
17671762
17681763
LABEL(my_label)
17691764
{
1770-
// Comment
17711765
_PyFrame_SetStackPointer(frame, stack_pointer);
17721766
do_thing();
17731767
stack_pointer = _PyFrame_GetStackPointer(frame);
@@ -1795,7 +1789,6 @@ def test_spilled_label(self):
17951789
output = """
17961790
LABEL(one)
17971791
{
1798-
/* STACK SPILLED */
17991792
stack_pointer = _PyFrame_GetStackPointer(frame);
18001793
JUMP_TO_LABEL(two);
18011794
}
@@ -1851,7 +1844,6 @@ def test_multiple_labels(self):
18511844
output = """
18521845
LABEL(my_label_1)
18531846
{
1854-
// Comment
18551847
_PyFrame_SetStackPointer(frame, stack_pointer);
18561848
do_thing1();
18571849
stack_pointer = _PyFrame_GetStackPointer(frame);
@@ -1860,7 +1852,6 @@ def test_multiple_labels(self):
18601852
18611853
LABEL(my_label_2)
18621854
{
1863-
// Comment
18641855
_PyFrame_SetStackPointer(frame, stack_pointer);
18651856
do_thing2();
18661857
stack_pointer = _PyFrame_GetStackPointer(frame);

0 commit comments

Comments
 (0)