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

Method test_invalid_fstring_value

Lib/test/test_unparse.py:477–485  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

475 self.check_invalid(ast.Raise(exc=None, cause=ast.Name(id="X", ctx=ast.Load())))
476
477 def test_invalid_fstring_value(self):
478 self.check_invalid(
479 ast.JoinedStr(
480 values=[
481 ast.Name(id="test", ctx=ast.Load()),
482 ast.Constant(value="test")
483 ]
484 )
485 )
486
487 def test_fstring_backslash(self):
488 # valid since Python 3.12

Callers

nothing calls this directly

Calls 2

LoadMethod · 0.80
check_invalidMethod · 0.45

Tested by

no test coverage detected