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

Method test_literal_eval

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

assertRaisesRegexMethod · 0.95

Tested by

no test coverage detected