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

Method createTempFile

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

Source from the content-addressed store, hash-verified

101 "Test the BZ2File class."
102
103 def createTempFile(self, streams=1, suffix=b""):
104 with open(self.filename, "wb") as f:
105 f.write(self.DATA * streams)
106 f.write(suffix)
107
108 def testBadArgs(self):
109 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