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

Method test_invalid_syntax_error_message

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

Source from the content-addressed store, hash-verified

1708
1709 @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: "f-string: expecting '=', or '!', or ':', or '}'" does not match "invalid syntax (?, line 1)"
1710 def test_invalid_syntax_error_message(self):
1711 with self.assertRaisesRegex(SyntaxError,
1712 "f-string: expecting '=', or '!', or ':', or '}'"):
1713 compile("f'{a $ b}'", "?", "exec")
1714
1715 def test_with_two_commas_in_format_specifier(self):
1716 error_msg = re.escape("Cannot specify ',' with ','.")

Callers

nothing calls this directly

Calls 2

assertRaisesRegexMethod · 0.95
compileFunction · 0.50

Tested by

no test coverage detected