diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-10-28 14:20:48 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-10-28 14:20:48 (GMT) |
commit | a1952d41201c292f16d7c9cac3a3755cb77bf68c (patch) | |
tree | 32cd1beb619ed354ab5f53edfe755d79cc0c2d8b | |
parent | 6a935d9230f5153697a5676a039c1af905617858 (diff) | |
download | cpython-a1952d41201c292f16d7c9cac3a3755cb77bf68c.zip cpython-a1952d41201c292f16d7c9cac3a3755cb77bf68c.tar.gz cpython-a1952d41201c292f16d7c9cac3a3755cb77bf68c.tar.bz2 |
Add test for BZ2Decompressor.decompress("") after end of stream.
-rw-r--r-- | Lib/test/test_bz2.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index 715468a..5b48e2b 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -365,6 +365,7 @@ class BZ2DecompressorTest(BaseTest): 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): |