Skip to content
Snippets Groups Projects
Unverified Commit 139d1330 authored by Manjinder Singh's avatar Manjinder Singh Committed by GitHub
Browse files

Merge pull request #21864 from edx/msingh/type_error2

BOM-749: Fixing error in test_assets.py
parents e10e743d e727ded1
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ class AssetsTestCase(CourseTestCase):
Returns an in-memory file of the specified type with the given name for testing
"""
sample_asset = BytesIO()
sample_file_contents = "This file is generated by python unit test"
sample_file_contents = b"This file is generated by python unit test"
if asset_type == 'text':
sample_asset.name = '{name}.txt'.format(name=name)
sample_asset.write(sample_file_contents)
......
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