From: Nadeem Vawda Date: Sun, 28 Oct 2012 14:20:35 +0000 (+0100) Subject: Add test for BZ2Decompressor.decompress("") after end of stream. X-Git-Tag: v2.7.4rc1~437 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e0dfea81c4b30654ea50c78f113d443fa396ec4;p=thirdparty%2FPython%2Fcpython.git Add test for BZ2Decompressor.decompress("") after end of stream. --- diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index 72aea1bcab88..8a5ae55cd392 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -398,6 +398,7 @@ class BZ2DecompressorTest(BaseTest): bz2d = BZ2Decompressor() text = bz2d.decompress(self.DATA) self.assertRaises(EOFError, bz2d.decompress, "anything") + self.assertRaises(EOFError, bz2d.decompress, "") @bigmemtest(_4G, memuse=1.25) def testBigmem(self, size):