From 4387f753d5834ba8b1cf8ca1859aaa31704b43e5 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Thu, 10 Oct 2019 16:06:17 +0500 Subject: [PATCH] BOM-912 Can't convert 'bytes' object to str implicitly --- openedx/core/djangoapps/user_api/accounts/tests/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/user_api/accounts/tests/test_views.py b/openedx/core/djangoapps/user_api/accounts/tests/test_views.py index 4af95a9e98..5ca9444a37 100644 --- a/openedx/core/djangoapps/user_api/accounts/tests/test_views.py +++ b/openedx/core/djangoapps/user_api/accounts/tests/test_views.py @@ -126,7 +126,7 @@ class UserAPITestCase(APITestCase): template = '{root}/{filename}_{{size}}.{extension}' if has_profile_image: url_root = 'http://example-storage.com/profile-images' - filename = hashlib.md5('secret' + self.user.username.encode('utf-8')).hexdigest() + filename = hashlib.md5(('secret' + self.user.username).encode('utf-8')).hexdigest() file_extension = 'jpg' template += '?v={}'.format(TEST_PROFILE_IMAGE_UPLOADED_AT.strftime("%s")) else: