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

Method test_gh139516

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

Source from the content-addressed store, hash-verified

1860 self.assertEqual(rf"{UnchangedFormat():\xFF} {UnchangedFormat():\n}", '\\xFF \\n')
1861
1862 def test_gh139516(self):
1863 with temp_cwd():
1864 script = 'script.py'
1865 with open(script, 'wb') as f:
1866 f.write('''def f(a): pass\nf"{f(a=lambda: 'à'\n)}"'''.encode())
1867 assert_python_ok(script)
1868
1869
1870if __name__ == '__main__':

Callers

nothing calls this directly

Calls 5

temp_cwdFunction · 0.90
assert_python_okFunction · 0.90
openFunction · 0.50
writeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected