mirror of
https://github.com/wassname/flask-s3.git
synced 2026-06-27 15:50:06 +08:00
write bytearray in both versions 2.7 and 3.X
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user