mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.13] gh-139646: fix typo in pickletools error message (GH-139647) (GH-139650)
(cherry picked from commit 36a6c2cdfa)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: yihong <zouzou0208@gmail.com>
This commit is contained in:
parent
ccf2f377fc
commit
94b26f015e
2 changed files with 5 additions and 5 deletions
|
|
@ -394,13 +394,13 @@ def test_string_without_quotes(self):
|
|||
self.check_dis_error(b'Sabc"\n.', '',
|
||||
"no string quotes around b'abc\"'")
|
||||
self.check_dis_error(b"S'abc\n.", '',
|
||||
'''strinq quote b"'" not found at both ends of b"'abc"''')
|
||||
'''string quote b"'" not found at both ends of b"'abc"''')
|
||||
self.check_dis_error(b'S"abc\n.', '',
|
||||
r"""strinq quote b'"' not found at both ends of b'"abc'""")
|
||||
r"""string quote b'"' not found at both ends of b'"abc'""")
|
||||
self.check_dis_error(b"S'abc\"\n.", '',
|
||||
r"""strinq quote b"'" not found at both ends of b'\\'abc"'""")
|
||||
r"""string quote b"'" not found at both ends of b'\\'abc"'""")
|
||||
self.check_dis_error(b"S\"abc'\n.", '',
|
||||
r"""strinq quote b'"' not found at both ends of b'"abc\\''""")
|
||||
r"""string quote b'"' not found at both ends of b'"abc\\''""")
|
||||
|
||||
def test_binstring(self):
|
||||
self.check_dis(b"T\x03\x00\x00\x00abc.", '''\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue