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

Method createTempFile

Lib/test/test_bz2.py:93–96  ·  view source on GitHub ↗
(self, streams=1, suffix=b"")

Source from the content-addressed store, hash-verified

91 "Test the BZ2File class."
92
93 def createTempFile(self, streams=1, suffix=b""):
94 with open(self.filename, "wb") as f:
95 f.write(self.DATA * streams)
96 f.write(suffix)
97
98 def testBadArgs(self):
99 self.assertRaises(TypeError, BZ2File, 123.456)

Callers 15

testReadMethod · 0.95
testReadBadFileMethod · 0.95
testReadMultiStreamMethod · 0.95
testReadTrailingJunkMethod · 0.95
testRead0Method · 0.95
testReadChunk10Method · 0.95
testRead100Method · 0.95
testPeekMethod · 0.95
testReadIntoMethod · 0.95

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected