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

Method testRead0

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

Source from the content-addressed store, hash-verified

147 self.assertEqual(bz2f.read(), self.TEXT * 5)
148
149 def testRead0(self):
150 self.createTempFile()
151 with BZ2File(self.filename) as bz2f:
152 self.assertRaises(TypeError, bz2f.read, float())
153 self.assertEqual(bz2f.read(0), b"")
154
155 def testReadChunk10(self):
156 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