File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,14 +16,16 @@ def test(n):
1616
1717
1818# If the port has at least 32-bits then this test should pass.
19- print (test (29 ))
19+ print (test (28 ))
2020
2121# This test should fail on all ports (overflows a small int).
2222print (test (70 ))
2323
24- # Check that there is a correct transition to the limit of too many args before *args.
24+ # 28 is the biggest number that will pass on a 32-bit port using object
25+ # representation B, which has 1<<28 still fitting in a positive small int.
2526reached_limit = False
26- for i in range (30 , 70 ):
27+ any_test_succeeded = False
28+ for i in range (28 , 70 ):
2729 result = test (i )
2830 if reached_limit :
2931 if result != "SyntaxError" :
@@ -34,3 +36,5 @@ def test(n):
3436 else :
3537 if result != i + 4 :
3638 print ("FAIL" )
39+ any_test_succeeded = True
40+ assert any_test_succeeded # At least one iteration must have passed
Original file line number Diff line number Diff line change 1- 33
1+ 32
22SyntaxError
You can’t perform that action at this time.
0 commit comments