mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-40528: Improve and clear several aspects of the ASDL definition code for the AST (GH-19952)
This commit is contained in:
parent
2668a9a5aa
commit
091951a67c
6 changed files with 75 additions and 101 deletions
|
@ -597,7 +597,7 @@ class AST_Tests(unittest.TestCase):
|
|||
empty_yield_from.body[0].body[0].value.value = None
|
||||
with self.assertRaises(ValueError) as cm:
|
||||
compile(empty_yield_from, "<test>", "exec")
|
||||
self.assertIn("field value is required", str(cm.exception))
|
||||
self.assertIn("field 'value' is required", str(cm.exception))
|
||||
|
||||
@support.cpython_only
|
||||
def test_issue31592(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue