summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bz2.py
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-10-28 14:20:48 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-10-28 14:20:48 (GMT)
commita1952d41201c292f16d7c9cac3a3755cb77bf68c (patch)
tree32cd1beb619ed354ab5f53edfe755d79cc0c2d8b /Lib/test/test_bz2.py
parent6a935d9230f5153697a5676a039c1af905617858 (diff)
downloadcpython-a1952d41201c292f16d7c9cac3a3755cb77bf68c.zip
cpython-a1952d41201c292f16d7c9cac3a3755cb77bf68c.tar.gz
cpython-a1952d41201c292f16d7c9cac3a3755cb77bf68c.tar.bz2
Add test for BZ2Decompressor.decompress("") after end of stream.
Diffstat (limited to 'Lib/test/test_bz2.py')
-rw-r--r--Lib/test/test_bz2.py1
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):