ZipFile.setpassword() takes bytes in python3

This commit is contained in:
Stuart D. Gathman
2019-08-12 17:46:45 -04:00
parent a1714f4838
commit d0d45c5e61
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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()