MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_parens_in_expressions

Method test_parens_in_expressions

Lib/test/test_fstring.py:938–948  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.95
assertAllRaiseMethod · 0.95

Tested by

no test coverage detected