[Python-checkins] cpython (merge 3.2 -> 3.3): Merge: Add test for BZ2Decompressor.decompress("") after end of stream.

nadeem.vawda python-checkins at python.org
Sun Oct 28 15:22:42 CET 2012


http://hg.python.org/cpython/rev/0a33422fb0d9
changeset:   80037:0a33422fb0d9
branch:      3.3
parent:      80030:696b05c3bd92
parent:      80036:2e52536a91a3
user:        Nadeem Vawda <nadeem.vawda at gmail.com>
date:        Sun Oct 28 15:21:37 2012 +0100
summary:
  Merge: Add test for BZ2Decompressor.decompress("") after end of stream.

files:
  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
--- a/Lib/test/test_bz2.py
+++ b/Lib/test/test_bz2.py
@@ -647,6 +647,7 @@
         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):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list