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

Method test_missing_variable

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

Source from the content-addressed store, hash-verified

1225 self.assertEqual(f'v:{value}', 'v:123')
1226
1227 def test_missing_variable(self):
1228 with self.assertRaises(NameError):
1229 f'v:{value}'
1230
1231 def test_missing_format_spec(self):
1232 class O:

Callers

nothing calls this directly

Calls 1

assertRaisesMethod · 0.95

Tested by

no test coverage detected