(self)
| 603 | compile(e, "<test>", "eval") |
| 604 | |
| 605 | def test_empty_yield_from(self): |
| 606 | # Issue 16546: yield from value is not optional. |
| 607 | empty_yield_from = ast.parse("def f():\n yield from g()") |
| 608 | empty_yield_from.body[0].body[0].value.value = None |
| 609 | with self.assertRaises(ValueError) as cm: |
| 610 | compile(empty_yield_from, "<test>", "exec") |
| 611 | self.assertIn("field 'value' is required", str(cm.exception)) |
| 612 | |
| 613 | @support.cpython_only |
| 614 | def test_issue31592(self): |
nothing calls this directly
no test coverage detected