Add test for BZ2Decompressor.decompress("") after end of stream.

This commit is contained in:
Nadeem Vawda 2012-10-28 15:20:48 +01:00
parent 6a935d9230
commit a1952d4120
1 changed files with 1 additions and 0 deletions

View File

@ -365,6 +365,7 @@ def testEOFError(self):
bz2d = BZ2Decompressor()
text = bz2d.decompress(self.DATA)
self.assertRaises(EOFError, bz2d.decompress, b"anything")
self.assertRaises(EOFError, bz2d.decompress, b"")
@bigmemtest(size=_4G, memuse=1.25, dry_run=False)
def testBigmem(self, unused_size):