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

Method create_file

Lib/test/archiver_tests.py:15–17  ·  view source on GitHub ↗
(self, path, content=b'')

Source from the content-addressed store, hash-verified

13 self.addCleanup(os_helper.rmtree, self.testdir)
14
15 def create_file(self, path, content=b''):
16 with open(path, 'wb') as f:
17 f.write(content)
18
19 def open(self, path):
20 raise NotImplementedError

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected