ZipFile.setpassword() takes bytes in python3
This commit is contained in:
1 parent
a1714f4838
commit
d0d45c5e61
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -54,7 +54,7 @@ class MimeTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.zf = zipfile.ZipFile('test/virus.zip','r')
|
||||
self.zf.setpassword('denatured')
|
||||
self.zf.setpassword(b'denatured')
|
||||
|
||||
def tearDown(self):
|
||||
self.zf.close()
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ class BMSMilterTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.zf = zipfile.ZipFile('test/virus.zip','r')
|
||||
self.zf.setpassword('denatured')
|
||||
self.zf.setpassword(b'denatured')
|
||||
|
||||
def tearDown(self):
|
||||
self.zf.close()
|
||||
|
||||
Reference in new issue
Block a user