[Python-checkins] CVS: python/dist/src/Lib/test test_zipfile.py,1.6,1.7

Guido van Rossum gvanrossum@users.sourceforge.net
Tue, 10 Apr 2001 07:46:42 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv10722

Modified Files:
	test_zipfile.py 
Log Message:
When zlib can't be imported, zipfile raises RuntimeError, which causes
the test to be marked as failing rather than skipped.  Add an explicit
"import zlib" to prevent this.


Index: test_zipfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_zipfile.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** test_zipfile.py	2001/04/04 18:56:49	1.6
--- test_zipfile.py	2001/04/10 14:46:39	1.7
***************
*** 1,2 ****
--- 1,3 ----
+ import zlib # implied prerequisite
  import zipfile, os, StringIO, tempfile
  from test_support import TestFailed