[Python-checkins] python/dist/src/Lib/test test_zlib.py,1.16,1.16.10.1
jhylton@sourceforge.net
jhylton@sourceforge.net
Fri, 19 Apr 2002 07:58:59 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv17651
Modified Files:
Tag: release22-maint
test_zlib.py
Log Message:
[backport bug fix from the trunk]
Fix SF #544995 (zlib crash on second flush call)
Bug fix by mhammond.
Bug fix candidate for 2.2, not present in 2.1.
Index: test_zlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_zlib.py,v
retrieving revision 1.16
retrieving revision 1.16.10.1
diff -C2 -d -r1.16 -r1.16.10.1
*** test_zlib.py 18 Oct 2001 21:57:37 -0000 1.16
--- test_zlib.py 19 Apr 2002 14:58:57 -0000 1.16.10.1
***************
*** 42,45 ****
--- 42,51 ----
x1 = co.compress(buf)
x2 = co.flush()
+ try:
+ co.flush()
+ print "Oops - second flush worked when it should not have!"
+ except zlib.error:
+ pass
+
x = x1 + x2