Skip to content

Commit 45d0000

Browse files
author
Charulata Lodha
committed
Fix Test suite py39-windows-64, py39-ubuntu, mypyc-compiled
1 parent a791f96 commit 45d0000

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

test-data/unit/fine-grained-suggest.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,10 +1035,10 @@ def foo():
10351035

10361036
(
10371037
[out]
1038-
foo.py:4: error: unexpected EOF while parsing
1038+
foo.py:4: error: Unexpected EOF while parsing
10391039
Command 'suggest' is only valid after a 'check' command (that produces no parse errors)
10401040
==
1041-
foo.py:4: error: unexpected EOF while parsing
1041+
foo.py:4: error: Unexpected EOF while parsing
10421042
[out version>=3.10]
10431043
foo.py:4: error: '(' was never closed
10441044
Command 'suggest' is only valid after a 'check' command (that produces no parse errors)

test-data/unit/parse-errors.test

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ file:1: error: Invalid syntax
1818
1
1919
2
2020
[out]
21-
file:2: error: unexpected indent
21+
file:2: error: Unexpected indent
2222

2323
[case testInconsistentIndent]
2424
if x:
2525
1
2626
1
2727
[out]
28-
file:3: error: unexpected indent
28+
file:3: error: Unexpected indent
2929

3030
[case testInconsistentIndent2]
3131
if x:
3232
1
3333
1
3434
[out]
35-
file:3: error: unindent does not match any outer indentation level
35+
file:3: error: Unindent does not match any outer indentation level
3636

3737
[case testInvalidBinaryOp]
3838
1>
@@ -55,17 +55,17 @@ file:1: error: Invalid syntax
5555
[case testUnexpectedEof]
5656
if 1:
5757
[out]
58-
file:1: error: expected an indented block
58+
file:1: error: Expected an indented block
5959

6060
[case testInvalidKeywordArguments1]
6161
f(x=y, z)
6262
[out]
63-
file:1: error: positional argument follows keyword argument
63+
file:1: error: Positional argument follows keyword argument
6464

6565
[case testInvalidKeywordArguments2]
6666
f(**x, y)
6767
[out]
68-
file:1: error: positional argument follows keyword argument unpacking
68+
file:1: error: Positional argument follows keyword argument unpacking
6969

7070
[case testInvalidBareAsteriskAndVarArgs2]
7171
def f(*x: A, *) -> None: pass
@@ -80,22 +80,22 @@ file:1: error: Invalid syntax
8080
[case testInvalidBareAsteriskAndVarArgs4]
8181
def f(*, **x: A) -> None: pass
8282
[out]
83-
file:1: error: named arguments must follow bare *
83+
file:1: error: Named arguments must follow bare *
8484

8585
[case testInvalidBareAsterisk1]
8686
def f(*) -> None: pass
8787
[out]
88-
file:1: error: named arguments must follow bare *
88+
file:1: error: Named arguments must follow bare *
8989

9090
[case testInvalidBareAsterisk2]
9191
def f(x, *) -> None: pass
9292
[out]
93-
file:1: error: named arguments must follow bare *
93+
file:1: error: Named arguments must follow bare *
9494

9595
[case testInvalidFuncDefArgs1]
9696
def f(x = y, x): pass
9797
[out]
98-
file:1: error: non-default argument follows default argument
98+
file:1: error: Non-default argument follows default argument
9999

100100
[case testInvalidFuncDefArgs3]
101101
def f(**x, y):
@@ -154,7 +154,7 @@ file:2: error: Syntax error in type comment "A B"
154154
[case testMissingBracket]
155155
def foo(
156156
[out]
157-
file:1: error: unexpected EOF while parsing
157+
file:1: error: Unexpected EOF while parsing
158158
[out version>=3.10]
159159
file:1: error: '(' was never closed
160160

@@ -362,48 +362,48 @@ file:1: error: Invalid syntax
362362
[case testParseErrorInExtendedSlicing]
363363
x[:,
364364
[out]
365-
file:1: error: unexpected EOF while parsing
365+
file:1: error: Unexpected EOF while parsing
366366

367367
[case testParseErrorInExtendedSlicing2]
368368
x[:,::
369369
[out]
370-
file:1: error: unexpected EOF while parsing
370+
file:1: error: Unexpected EOF while parsing
371371

372372
[case testParseErrorInExtendedSlicing3]
373373
x[:,:
374374
[out]
375-
file:1: error: unexpected EOF while parsing
375+
file:1: error: Unexpected EOF while parsing
376376

377377
[case testInvalidEncoding]
378378
# foo
379379
# coding: uft-8
380380
[out]
381-
file:0: error: unknown encoding: uft-8
381+
file:0: error: Unknown encoding: uft-8
382382

383383
[case testInvalidEncoding2]
384384
# coding=Uft.8
385385
[out]
386-
file:0: error: unknown encoding: Uft.8
386+
file:0: error: Unknown encoding: Uft.8
387387

388388
[case testInvalidEncoding3]
389389
#!/usr/bin python
390390
# vim: set fileencoding=uft8 :
391391
[out]
392-
file:0: error: unknown encoding: uft8
392+
file:0: error: Unknown encoding: uft8
393393

394394
[case testDoubleEncoding]
395395
# coding: uft8
396396
# coding: utf8
397397
# The first coding cookie should be used and fail.
398398
[out]
399-
file:0: error: unknown encoding: uft8
399+
file:0: error: Unknown encoding: uft8
400400

401401
[case testDoubleEncoding2]
402402
# Again the first cookie should be used and fail.
403403
# coding: uft8
404404
# coding: utf8
405405
[out]
406-
file:0: error: unknown encoding: uft8
406+
file:0: error: Unknown encoding: uft8
407407

408408
[case testLongLiteralInPython3]
409409
2L
@@ -434,7 +434,7 @@ file:1: error: Invalid syntax
434434
[case testSmartQuotes]
435435
foo = ‘bar’
436436
[out]
437-
file:1: error: invalid character '‘' (U+2018)
437+
file:1: error: Invalid character '‘' (U+2018)
438438

439439
[case testExceptCommaInPython3]
440440
try:

test-data/unit/semanal-errors.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ main:2: error: Cannot delete function call
498498
x = 1
499499
del x + 1
500500
[out]
501-
main:2: error: cannot delete operator
501+
main:2: error: Cannot delete operator
502502
[out version>=3.10]
503503
main:2: error: Cannot delete expression
504504

0 commit comments

Comments
 (0)