(self)
| 936 | |
| 937 | @unittest.expectedFailure # TODO: RUSTPYTHON |
| 938 | def test_parens_in_expressions(self): |
| 939 | self.assertEqual(f'{3,}', '(3,)') |
| 940 | |
| 941 | self.assertAllRaise(SyntaxError, |
| 942 | "f-string: expecting a valid expression after '{'", |
| 943 | ["f'{,}'", |
| 944 | ]) |
| 945 | |
| 946 | self.assertAllRaise(SyntaxError, r"f-string: unmatched '\)'", |
| 947 | ["f'{3)+(4}'", |
| 948 | ]) |
| 949 | |
| 950 | @unittest.expectedFailure # TODO: RUSTPYTHON |
| 951 | def test_newlines_before_syntax_error(self): |
nothing calls this directly
no test coverage detected