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

Method test_literal_eval

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

Source from the content-addressed store, hash-verified

575 self.assertIsNone(g.__doc__)
576
577 def test_literal_eval(self):
578 with self.assertRaisesRegex(ValueError, 'malformed node or string'):
579 ast.literal_eval("f'x'")
580
581 def test_ast_compile_time_concat(self):
582 x = ['']

Callers

nothing calls this directly

Calls 1

assertRaisesRegexMethod · 0.95

Tested by

no test coverage detected