]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40585: Normalize errors messages in codeop when comparing them (GH-20030)
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 11 May 2020 00:41:26 +0000 (01:41 +0100)
committerGitHub <noreply@github.com>
Mon, 11 May 2020 00:41:26 +0000 (01:41 +0100)
commit5b956ca42de37c761562e9c9aeb96a0e67606e33
tree5f7ce29546bf89d847ae222a91acc924af84c949
parent2cc9b8486dd924214f9e5657672fdeb24449d206
bpo-40585: Normalize errors messages in codeop when comparing them (GH-20030)

With the new parser, the error message contains always the trailing
newlines, causing the comparison of the repr of the error messages
in codeop to fail. This commit makes the new parser mirror the old parser's
behaviour regarding trailing newlines.
Lib/test/test_codeop.py
Misc/NEWS.d/next/Core and Builtins/2020-05-11-00-19-42.bpo-40585.yusknY.rst [new file with mode: 0644]
Parser/pegen/pegen.c