def testSeekForwardBytesIO(self):
    with BytesIO(self.DATA) as bio:
        with BZ2File(bio) as bz2f:
            self.assertRaises(TypeError, bz2f.seek)
            bz2f.seek(150)
            self.assertEqual(bz2f.read(), self.TEXT[150:])
def testSeekForwardBytesIO(self):
    with BytesIO(self.DATA) as bio:
        with BZ2File(bio) as bz2f:
            self.assertRaises(TypeError, bz2f.seek)
            bz2f.seek(150)
            self.assertEqual(bz2f.read(), self.TEXT[150:])