From bc7ef1ddf3b8cbbe5f308d8758d951f6caa3bafe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 26 Jul 2018 08:12:49 +0200 Subject: [PATCH] tests: create momo zip test file as binary (py3) --- tests/test_momo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_momo.py b/tests/test_momo.py index cab3a7d6..9ff98eec 100644 --- a/tests/test_momo.py +++ b/tests/test_momo.py @@ -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()