Skip to content
Snippets Groups Projects
Commit 54495902 authored by Awais Qureshi's avatar Awais Qureshi
Browse files

BOM-937

Open a file in read binary mode to avoid bytes issues.
parent 523bb0ea
No related branches found
No related tags found
No related merge requests found
......@@ -398,7 +398,7 @@ class CourseFixture(XBlockContainerFixture):
for asset_name in self._assets:
asset_file_path = test_dir + '/data/uploads/' + asset_name
asset_file = open(asset_file_path)
asset_file = open(asset_file_path, mode='rb')
files = {'file': (asset_name, asset_file, mimetypes.guess_type(asset_file_path)[0])}
headers = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment