def testRead0(self):
    self.createTempFile()
    with BZ2File(self.filename) as bz2f:
        self.assertRaises(TypeError, bz2f.read, float())
        self.assertEqual(bz2f.read(0), b'')
def testRead0(self):
    self.createTempFile()
    with BZ2File(self.filename) as bz2f:
        self.assertRaises(TypeError, bz2f.read, float())
        self.assertEqual(bz2f.read(0), b)