def testClosedIteratorDeadlock(self):
    self.createTempFile()
    bz2f = BZ2File(self.filename)
    bz2f.close()
    self.assertRaises(ValueError, next, bz2f)
    self.assertRaises(ValueError, bz2f.readlines)
def testClosedIteratorDeadlock(self):
    self.createTempFile()
    bz2f = BZ2File(self.filename)
    bz2f.close()
    self.assertRaises(ValueError, next, bz2f)
    self.assertRaises(ValueError, bz2f.readlines)