From 778191f18ed8fca2a5f0a7efec5861fb7db5bce4 Mon Sep 17 00:00:00 2001 From: "Paulo Ricardo [PR]" Date: Thu, 7 Jan 2016 17:41:42 -0200 Subject: [PATCH] write bytearray in both versions 2.7 and 3.X --- test_flask_static.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test_flask_static.py b/test_flask_static.py index 9f71549..598523e 100644 --- a/test_flask_static.py +++ b/test_flask_static.py @@ -368,8 +368,7 @@ class S3Tests(unittest.TestCase): for filename in filenames: # Write random data into files with open(filename, 'wb') as f: - if six.PY3: - f.write(bytearray([120, 3, 255, 0, 100])) + f.write(bytearray([120, 3, 255, 0, 100])) flask_s3._write_files(key_mock, self.app, static_url_loc, static_folder, filenames, None)