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

Method test_unterminated_string

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

Source from the content-addressed store, hash-verified

600 self.assertEqual(f' ', ' ')
601
602 def test_unterminated_string(self):
603 self.assertAllRaise(SyntaxError, 'unterminated string',
604 [r"""f'{"x'""",
605 r"""f'{"x}'""",
606 r"""f'{("x'""",
607 r"""f'{("x}'""",
608 ])
609
610 @unittest.expectedFailure # TODO: RUSTPYTHON
611 @unittest.skipIf(support.is_wasi, "exhausts limited stack on WASI")

Callers

nothing calls this directly

Calls 1

assertAllRaiseMethod · 0.95

Tested by

no test coverage detected