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

Method test_debug_in_file

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

Source from the content-addressed store, hash-verified

1777 ])
1778
1779 def test_debug_in_file(self):
1780 with temp_cwd():
1781 script = 'script.py'
1782 with open('script.py', 'w') as f:
1783 f.write(f"""\
1784print(f'''{{
17853
1786=}}''')""")
1787
1788 _, stdout, _ = assert_python_ok(script)
1789 self.assertEqual(stdout.decode('utf-8').strip().replace('\r\n', '\n').replace('\r', '\n'),
1790 "3\n=3")
1791
1792 def test_syntax_warning_infinite_recursion_in_file(self):
1793 with temp_cwd():

Callers

nothing calls this directly

Calls 8

assertEqualMethod · 0.95
temp_cwdFunction · 0.90
assert_python_okFunction · 0.90
openFunction · 0.50
writeMethod · 0.45
replaceMethod · 0.45
stripMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected