tests: create momo zip test file as binary (py3)

This commit is contained in:
Frédéric Péters 2018-07-26 08:12:49 +02:00
parent 882d04d88c
commit bc7ef1ddf3
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class MomoEnabled(object):
def assets_base():
assets_base_path = os.path.join(settings.MEDIA_ROOT, 'assets-base.zip')
if not os.path.exists(assets_base_path):
fd = open(assets_base_path, 'w')
fd = open(assets_base_path, 'wb')
z = zipfile.ZipFile(fd, 'w')
z.close()