|
12 | 12 | def f() |
13 | 13 | pass |
14 | 14 | [out] |
15 | | -file:1: error: Invalid syntax |
| 15 | +file:1: error: Expected ':' |
16 | 16 |
|
17 | 17 | [case testUnexpectedIndent] |
18 | 18 | 1 |
@@ -55,7 +55,7 @@ file:1: error: Invalid syntax |
55 | 55 | [case testUnexpectedEof] |
56 | 56 | if 1: |
57 | 57 | [out] |
58 | | -file:1: error: Expected an indented block |
| 58 | +file:1: error: Expected an indented block after 'if' statement on line 1 |
59 | 59 |
|
60 | 60 | [case testInvalidKeywordArguments1] |
61 | 61 | f(x=y, z) |
@@ -281,17 +281,17 @@ file:3: error: Inconsistent use of "**" in function signature |
281 | 281 | [case testPrintStatementInPython3] |
282 | 282 | print 1 |
283 | 283 | [out] |
284 | | -file:1: error: Missing parentheses in call to 'print'. Did you mean print(1)? |
| 284 | +file:1: error: Missing parentheses in call to 'print'. Did you mean print(...)? |
285 | 285 |
|
286 | 286 | [case testInvalidConditionInConditionalExpression] |
287 | 287 | 1 if 2, 3 else 4 |
288 | 288 | [out] |
289 | | -file:1: error: Invalid syntax |
| 289 | +file:1: error: Expected 'else' after 'if' expression |
290 | 290 |
|
291 | 291 | [case testInvalidConditionInConditionalExpression2] |
292 | 292 | 1 if x for y in z else 4 |
293 | 293 | [out] |
294 | | -file:1: error: Invalid syntax |
| 294 | +file:1: error: Expected 'else' after 'if' expression |
295 | 295 |
|
296 | 296 | [case testInvalidConditionInConditionalExpression3] |
297 | 297 | 1 if x else for y in z |
@@ -360,17 +360,17 @@ file:1: error: Invalid syntax |
360 | 360 | [case testParseErrorInExtendedSlicing] |
361 | 361 | x[:, |
362 | 362 | [out] |
363 | | -file:1: error: Unexpected EOF while parsing |
| 363 | +file:1: error: '[' was never closed |
364 | 364 |
|
365 | 365 | [case testParseErrorInExtendedSlicing2] |
366 | 366 | x[:,:: |
367 | 367 | [out] |
368 | | -file:1: error: Unexpected EOF while parsing |
| 368 | +file:1: error: '[' was never closed |
369 | 369 |
|
370 | 370 | [case testParseErrorInExtendedSlicing3] |
371 | 371 | x[:,: |
372 | 372 | [out] |
373 | | -file:1: error: Unexpected EOF while parsing |
| 373 | +file:1: error: '[' was never closed |
374 | 374 |
|
375 | 375 | [case testInvalidEncoding] |
376 | 376 | # foo |
@@ -407,7 +407,7 @@ file:0: error: Unknown encoding: uft8 |
407 | 407 | 2L |
408 | 408 | 0x2L |
409 | 409 | [out] |
410 | | -file:1: error: Invalid syntax |
| 410 | +file:1: error: Invalid decimal literal |
411 | 411 |
|
412 | 412 | [case testPython2LegacyInequalityInPython3] |
413 | 413 | 1 <> 2 |
|
440 | 440 | except KeyError, IndexError: |
441 | 441 | pass |
442 | 442 | [out] |
443 | | -file:3: error: Invalid syntax |
| 443 | +file:3: error: Multiple exception types must be parenthesized |
0 commit comments