mirror of https://github.com/python/cpython.git
Merge: Add test for BZ2Decompressor.decompress("") after end of stream.
This commit is contained in:
commit
8ca705d549
|
@ -640,6 +640,7 @@ def testEOFError(self):
|
||||||
bz2d = BZ2Decompressor()
|
bz2d = BZ2Decompressor()
|
||||||
text = bz2d.decompress(self.DATA)
|
text = bz2d.decompress(self.DATA)
|
||||||
self.assertRaises(EOFError, bz2d.decompress, b"anything")
|
self.assertRaises(EOFError, bz2d.decompress, b"anything")
|
||||||
|
self.assertRaises(EOFError, bz2d.decompress, b"")
|
||||||
|
|
||||||
@bigmemtest(size=_4G + 100, memuse=3)
|
@bigmemtest(size=_4G + 100, memuse=3)
|
||||||
def testDecompress4G(self, size):
|
def testDecompress4G(self, size):
|
||||||
|
|
Loading…
Reference in New Issue