diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-06-08 00:15:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-08 00:15:46 (GMT) |
commit | ffd87b7093109c279caf8e3ca060f408a102388a (patch) | |
tree | b2200c316df8debc1c621da670505b594271b3a2 /Lib/test/test_cmd_line_script.py | |
parent | 165c884154901deae46b5e328a6414d130e6bfff (diff) | |
download | cpython-ffd87b7093109c279caf8e3ca060f408a102388a.zip cpython-ffd87b7093109c279caf8e3ca060f408a102388a.tar.gz cpython-ffd87b7093109c279caf8e3ca060f408a102388a.tar.bz2 |
fix: use unambiguous punction in 'invalid escape sequence' message (GH-26582)
Diffstat (limited to 'Lib/test/test_cmd_line_script.py')
-rw-r--r-- | Lib/test/test_cmd_line_script.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_cmd_line_script.py b/Lib/test/test_cmd_line_script.py index af29c17..6ffec91 100644 --- a/Lib/test/test_cmd_line_script.py +++ b/Lib/test/test_cmd_line_script.py @@ -651,7 +651,7 @@ class CmdLineTest(unittest.TestCase): stderr.splitlines()[-3:], [ b' foo = """\\q"""', b' ^^^^^^^^', - b'SyntaxError: invalid escape sequence \\q' + b'SyntaxError: invalid escape sequence \'\\q\'' ], ) |