MCPcopy Index your code
hub / github.com/python/cpython / test_newlines_before_syntax_error

Method test_newlines_before_syntax_error

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

Source from the content-addressed store, hash-verified

940 ])
941
942 def test_newlines_before_syntax_error(self):
943 self.assertAllRaise(SyntaxError,
944 "f-string: expecting a valid expression after '{'",
945 ["f'{.}'", "\nf'{.}'", "\n\nf'{.}'"])
946
947 def test_backslashes_in_string_part(self):
948 self.assertEqual(f'\t', '\t')

Callers

nothing calls this directly

Calls 1

assertAllRaiseMethod · 0.95

Tested by

no test coverage detected