Fix for the broken test I just committed

This commit is contained in:
Nate Coraor
2009-11-10 16:02:49 -05:00
parent baea4439d1
commit 0e700a29fd
+1 -1
View File
@@ -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 ) )