From 77ac61212b1a15dc00c4938dddfd7e87b39a474b Mon Sep 17 00:00:00 2001 From: amitvadhel Date: Sun, 8 Sep 2019 13:02:55 +0300 Subject: [PATCH] Updates for TypeError in Python 3 --- cms/djangoapps/contentstore/tests/test_orphan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/djangoapps/contentstore/tests/test_orphan.py b/cms/djangoapps/contentstore/tests/test_orphan.py index 2e73911451..92e076740a 100644 --- a/cms/djangoapps/contentstore/tests/test_orphan.py +++ b/cms/djangoapps/contentstore/tests/test_orphan.py @@ -93,7 +93,7 @@ class TestOrphan(TestOrphanBase): self.client.get( orphan_url, HTTP_ACCEPT='application/json' - ).content + ).content.decode('utf-8') ) self.assertEqual(len(orphans), 3, u"Wrong # {}".format(orphans)) location = course.location.replace(category='chapter', name='OrphanChapter') @@ -119,7 +119,7 @@ class TestOrphan(TestOrphanBase): self.client.delete(orphan_url) orphans = json.loads( - self.client.get(orphan_url, HTTP_ACCEPT='application/json').content + self.client.get(orphan_url, HTTP_ACCEPT='application/json').content.decode('utf-8') ) self.assertEqual(len(orphans), 0, u"Orphans not deleted {}".format(orphans))