mirror of
https://github.com/python/cpython.git
synced 2026-04-16 00:31:03 +00:00
[3.13] gh-148157: Check for _PyPegen_add_type_comment_to_arg fail in _PyPegen_name_default_pair (GH-148158) (#148163)
(cherry picked from commit 1795fccfbc)
Co-authored-by: Stan Ulbrych <stan@python.org>
This commit is contained in:
parent
9b576f14bf
commit
4dfcdbe22c
3 changed files with 8 additions and 0 deletions
|
|
@ -398,6 +398,9 @@ def test_non_utf8_type_comment_with_ignore_cookie(self):
|
|||
with self.assertRaises(UnicodeDecodeError):
|
||||
_testcapi.Py_CompileStringExFlags(
|
||||
b"a=1 # type: \x80", "<test>", 256, flags)
|
||||
with self.assertRaises(UnicodeDecodeError):
|
||||
_testcapi.Py_CompileStringExFlags(
|
||||
b"def a(f=8, #type: \x80\n\x80", "<test>", 256, flags)
|
||||
|
||||
def test_func_type_input(self):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue