Browse Source

Fixes for python3

test_fixup
Vadim Lebedev 2 years ago
parent
commit
0566cec2ad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests.py

+ 1
- 1
tests.py View File

@@ -271,7 +271,7 @@ class TestPasswordProtection(unittest.TestCase):
def setUp(self):
with open(ZIPPATH, mode='w') as f:
if PY3:
f.write(base64.b64decode(ZIP_CONTENT).decode('utf-8'))
f.write(base64.b64decode(ZIP_CONTENT).decode('latin1'))
else:
f.write(base64.b64decode(ZIP_CONTENT))



Loading…
Cancel
Save