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

Method testRead0

Lib/test/test_bz2.py:159–163  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157 self.assertEqual(bz2f.read(), self.TEXT * 5)
158
159 def testRead0(self):
160 self.createTempFile()
161 with BZ2File(self.filename) as bz2f:
162 self.assertRaises(TypeError, bz2f.read, float())
163 self.assertEqual(bz2f.read(0), b"")
164
165 def testReadChunk10(self):
166 self.createTempFile()

Callers

nothing calls this directly

Calls 5

createTempFileMethod · 0.95
BZ2FileClass · 0.90
assertRaisesMethod · 0.45
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected