write bytearray in both versions 2.7 and 3.X

This commit is contained in:
Paulo Ricardo [PR]
2016-01-07 17:41:42 -02:00
parent 1f1d3634b7
commit 778191f18e
+1 -2
View File
@@ -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)