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

Method test_gh139516

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

Source from the content-addressed store, hash-verified

1879 self.assertEqual(rf"{UnchangedFormat():\xFF} {UnchangedFormat():\n}", '\\xFF \\n')
1880
1881 def test_gh139516(self):
1882 with temp_cwd():
1883 script = 'script.py'
1884 with open(script, 'wb') as f:
1885 f.write('''def f(a): pass\nf"{f(a=lambda: 'à'\n)}"'''.encode())
1886 assert_python_ok(script)
1887
1888
1889if __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