summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-10-28 14:22:08 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-10-28 14:22:08 (GMT)
commit8ca705d5495f02ad93380e1f960adb98f7c00e22 (patch)
tree8739d06b780ab25a3cf69990b40f91e142b9f3c0 /Lib/test
parent84833aa7b4215bfbc15d2661fec326b5a49e7371 (diff)
parent6294305c2f97eca55789574d8f14aa6765bb3007 (diff)
downloadcpython-8ca705d5495f02ad93380e1f960adb98f7c00e22.zip
cpython-8ca705d5495f02ad93380e1f960adb98f7c00e22.tar.gz
cpython-8ca705d5495f02ad93380e1f960adb98f7c00e22.tar.bz2
Merge: Add test for BZ2Decompressor.decompress("") after end of stream.
Diffstat (limited to 'Lib/test')
-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 e8e9d32..24a1813 100644
--- a/Lib/test/test_bz2.py
+++ b/Lib/test/test_bz2.py
@@ -640,6 +640,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):