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

Method setUp

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

Source from the content-addressed store, hash-verified

57 cls.data = b''.join(cls.line_gen)
58
59 def setUp(self):
60 # Make a source file with some lines
61 with open(TESTFN, "wb") as fp:
62 fp.write(self.data)
63
64 def make_test_archive(self, f, compression, compresslevel=None):
65 kwargs = {'compression': compression, 'compresslevel': compresslevel}

Callers

nothing calls this directly

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected