mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Add test for BZ2Decompressor.decompress("") after end of stream.
This commit is contained in:
parent
41c25ba451
commit
8e0dfea81c
1 changed files with 1 additions and 0 deletions
|
|
@ -398,6 +398,7 @@ class BZ2DecompressorTest(BaseTest):
|
||||||
bz2d = BZ2Decompressor()
|
bz2d = BZ2Decompressor()
|
||||||
text = bz2d.decompress(self.DATA)
|
text = bz2d.decompress(self.DATA)
|
||||||
self.assertRaises(EOFError, bz2d.decompress, "anything")
|
self.assertRaises(EOFError, bz2d.decompress, "anything")
|
||||||
|
self.assertRaises(EOFError, bz2d.decompress, "")
|
||||||
|
|
||||||
@bigmemtest(_4G, memuse=1.25)
|
@bigmemtest(_4G, memuse=1.25)
|
||||||
def testBigmem(self, size):
|
def testBigmem(self, size):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue