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

Method test_newlines_before_syntax_error

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

Source from the content-addressed store, hash-verified

949
950 @unittest.expectedFailure # TODO: RUSTPYTHON
951 def test_newlines_before_syntax_error(self):
952 self.assertAllRaise(SyntaxError,
953 "f-string: expecting a valid expression after '{'",
954 ["f'{.}'", "\nf'{.}'", "\n\nf'{.}'"])
955
956 def test_backslashes_in_string_part(self):
957 self.assertEqual(f'\t', '\t')

Callers

nothing calls this directly

Calls 1

assertAllRaiseMethod · 0.95

Tested by

no test coverage detected