bpo-40528: Improve and clear several aspects of the ASDL definition code for the AST (GH-19952)

This commit is contained in:
Batuhan Taskaya 2020-05-06 17:29:32 +03:00 committed by GitHub
parent 2668a9a5aa
commit 091951a67c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 75 additions and 101 deletions

View file

@ -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):