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

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


http://hg.python.org/cpython/rev/3bc1784be9aa
changeset:   80038:3bc1784be9aa
parent:      80034:a3ba5fe9bfd3
parent:      80037:0a33422fb0d9
user:        Nadeem Vawda <nadeem.vawda at gmail.com>
date:        Sun Oct 28 15:22:08 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
@@ -640,6 +640,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