diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-10-28 14:21:37 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-10-28 14:21:37 (GMT) |
commit | 6294305c2f97eca55789574d8f14aa6765bb3007 (patch) | |
tree | ccbabc6ae3a969de278d8ffa20c7835b8a2b7571 | |
parent | 484adb509ee78b7e9a0b0374235bb4bf0a3e3aa9 (diff) | |
parent | a1952d41201c292f16d7c9cac3a3755cb77bf68c (diff) | |
download | cpython-6294305c2f97eca55789574d8f14aa6765bb3007.zip cpython-6294305c2f97eca55789574d8f14aa6765bb3007.tar.gz cpython-6294305c2f97eca55789574d8f14aa6765bb3007.tar.bz2 |
Merge: 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 257b144..f4e81db 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -647,6 +647,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 + 100, memuse=3) def testDecompress4G(self, size): |