Skip to content

Commit

Permalink
testcmdline: Sync assumption about error message for Python 3.10.3 (#…
Browse files Browse the repository at this point in the history
…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 <slev@altlinux.org>
  • Loading branch information
stanislavlevin committed Mar 25, 2022
1 parent aa7c170 commit 6b0e848
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test-data/unit/cmdline.test
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,10 @@ Found 1 error in 1 file (errors prevented further checking)
pkg/x.py:1: error: invalid syntax. Perhaps you forgot a comma?
Found 1 error in 1 file (errors prevented further checking)
== Return code: 2
[out version>=3.10.3]
pkg/x.py:1: error: invalid syntax
Found 1 error in 1 file (errors prevented further checking)
== Return code: 2

[case testCmdlinePackageAndFile]
# cmd: mypy -p pkg file
Expand Down

0 comments on commit 6b0e848

Please sign in to comment.