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

Method test_compile_time_concat_errors

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

assertAllRaiseMethod · 0.95

Tested by

no test coverage detected