(self)
| 1717 | f'{1:_,}' |
| 1718 | |
| 1719 | def test_syntax_error_for_starred_expressions(self): |
| 1720 | with self.assertRaisesRegex(SyntaxError, "can't use starred expression here"): |
| 1721 | compile("f'{*a}'", "?", "exec") |
| 1722 | |
| 1723 | with self.assertRaisesRegex(SyntaxError, |
| 1724 | "f-string: expecting a valid expression after '{'"): |
| 1725 | compile("f'{**a}'", "?", "exec") |
| 1726 | |
| 1727 | def test_not_closing_quotes(self): |
| 1728 | self.assertAllRaise(SyntaxError, "unterminated f-string literal", ['f"', "f'"]) |
nothing calls this directly
no test coverage detected