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

Method test_unterminated_string

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

assertAllRaiseMethod · 0.95

Tested by

no test coverage detected