(self)
| 475 | self.check_invalid(ast.Raise(exc=None, cause=ast.Name(id="X", ctx=ast.Load()))) |
| 476 | |
| 477 | def test_invalid_fstring_value(self): |
| 478 | self.check_invalid( |
| 479 | ast.JoinedStr( |
| 480 | values=[ |
| 481 | ast.Name(id="test", ctx=ast.Load()), |
| 482 | ast.Constant(value="test") |
| 483 | ] |
| 484 | ) |
| 485 | ) |
| 486 | |
| 487 | def test_fstring_backslash(self): |
| 488 | # valid since Python 3.12 |
nothing calls this directly
no test coverage detected