summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-06-08 00:36:19 (GMT)
committerGitHub <noreply@github.com>2021-06-08 00:36:19 (GMT)
commitd80f4265db63a1692455abb8d1c77d0d72151bbb (patch)
tree1fe4bedf5ad99ac02eec2d8db3cee274f3b51c3a /Lib/test
parent8524e32d77b6741cdd7f947c009b10b54c6529b8 (diff)
downloadcpython-d80f4265db63a1692455abb8d1c77d0d72151bbb.zip
cpython-d80f4265db63a1692455abb8d1c77d0d72151bbb.tar.gz
cpython-d80f4265db63a1692455abb8d1c77d0d72151bbb.tar.bz2
fix: use unambiguous punction in 'invalid escape sequence' message (GH-26582)
(cherry picked from commit ffd87b7093109c279caf8e3ca060f408a102388a) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_cmd_line_script.py2
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\''
],
)