From 0e700a29fd9f3371b44186113395d949f20c3c75 Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Tue, 10 Nov 2009 16:02:49 -0500 Subject: [PATCH] Fix for the broken test I just committed --- test/base/twilltestcase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/base/twilltestcase.py b/test/base/twilltestcase.py index c51434967bb..fa85e85b985 100644 --- a/test/base/twilltestcase.py +++ b/test/base/twilltestcase.py @@ -1651,7 +1651,7 @@ class TwillTestCase( unittest.TestCase ): t.extract( n, tmpd ) t.close() elif zipfile.is_zipfile( archive ): - z = zipfile.open( archive ) + z = zipfile.ZipFile( archive, 'r' ) for n in z.namelist(): mkdir( n ) open( os.path.join( tmpd, n ), 'wb' ).write( z.read( n ) )