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

Method test_compile_time_concat_errors

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

Source from the content-addressed store, hash-verified

587 self.assertEqual(x[0], 'foo3')
588
589 def test_compile_time_concat_errors(self):
590 self.assertAllRaise(SyntaxError,
591 'cannot mix bytes and nonbytes literals',
592 [r"""f'' b''""",
593 r"""b'' f''""",
594 ])
595
596 def test_literal(self):
597 self.assertEqual(f'', '')

Callers

nothing calls this directly

Calls 1

assertAllRaiseMethod · 0.95

Tested by

no test coverage detected