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

Function write_file

Lib/test/test_reprlib.py:654–656  ·  view source on GitHub ↗
(path, text)

Source from the content-addressed store, hash-verified

652 self.assertEqual(aRepr.repr(t), "Type With Spaces")
653
654def write_file(path, text):
655 with open(path, 'w', encoding='ASCII') as fp:
656 fp.write(text)
657
658class LongReprTest(unittest.TestCase):
659 longname = 'areallylongpackageandmodulenametotestreprtruncation'

Callers 4

test_typeMethod · 0.85
test_classMethod · 0.85
test_instanceMethod · 0.85
test_methodMethod · 0.85

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected