8000 Add test for BZ2Decompressor.decompress("") after end of stream. · python/cpython@a1952d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit a1952d4

Browse files
committed
Add test for BZ2Decompressor.decompress("") after end of stream.
1 parent 6a935d9 commit a1952d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_bz2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ def testEOFError(self):
365365
bz2d = BZ2Decompressor()
366366
text = bz2d.decompress(self.DATA)
367367
self.assertRaises(EOFError, bz2d.decompress, b"anything")
368+
self.assertRaises(EOFError, bz2d.decompress, b"")
368369

369370
@bigmemtest(size=_4G, memuse=1.25, dry_run=False)
370371
def testBigmem(self, unused_size):

0 commit comments

Comments
 (0)
0