tests: create momo zip test file as binary (py3)
This commit is contained in:
parent
882d04d88c
commit
bc7ef1ddf3
|
@ -27,7 +27,7 @@ class MomoEnabled(object):
|
||||||
def assets_base():
|
def assets_base():
|
||||||
assets_base_path = os.path.join(settings.MEDIA_ROOT, 'assets-base.zip')
|
assets_base_path = os.path.join(settings.MEDIA_ROOT, 'assets-base.zip')
|
||||||
if not os.path.exists(assets_base_path):
|
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 = zipfile.ZipFile(fd, 'w')
|
||||||
z.close()
|
z.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue