Skip to content

Commit 6b0e848

Browse files
testcmdline: Sync assumption about error message for Python 3.10.3 (#12452)
Python 3.10.3 is more correct about syntax error for `mypy` test case `testBlocker`. See https://bugs.python.org/issue46240 for details. Closes #12451 Signed-off-by: Stanislav Levin <[email protected]>
1 parent aa7c170 commit 6b0e848

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test-data/unit/cmdline.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,10 @@ Found 1 error in 1 file (errors prevented further checking)
12491249
pkg/x.py:1: error: invalid syntax. Perhaps you forgot a comma?
12501250
Found 1 error in 1 file (errors prevented further checking)
12511251
== Return code: 2
1252+
[out version>=3.10.3]
1253+
pkg/x.py:1: error: invalid syntax
1254+
Found 1 error in 1 file (errors prevented further checking)
1255+
== Return code: 2
12521256

12531257
[case testCmdlinePackageAndFile]
12541258
# cmd: mypy -p pkg file

0 commit comments

Comments
 (0)