(self)
| 578 | ast.literal_eval("f'x'") |
| 579 | |
| 580 | def test_ast_compile_time_concat(self): |
| 581 | x = [''] |
| 582 | |
| 583 | expr = """x[0] = 'foo' f'{3}'""" |
| 584 | t = ast.parse(expr) |
| 585 | c = compile(t, '', 'exec') |
| 586 | exec(c) |
| 587 | self.assertEqual(x[0], 'foo3') |
| 588 | |
| 589 | def test_compile_time_concat_errors(self): |
| 590 | self.assertAllRaise(SyntaxError, |
nothing calls this directly
no test coverage detected