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

Method setUp

Lib/test/test_zipfile/test_core.py:69–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 cls.data = b''.join(cls.line_gen)
68
69 def setUp(self):
70 # Make a source file with some lines
71 with open(TESTFN, "wb") as fp:
72 fp.write(self.data)
73
74 def make_test_archive(self, f, compression, compresslevel=None):
75 kwargs = {'compression': compression, 'compresslevel': compresslevel}

Callers

nothing calls this directly

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected