From 3ae2e44af4d533759c9fc8fdba08ca0462edc1e9 Mon Sep 17 00:00:00 2001 From: Ayub khan Date: Mon, 30 Sep 2019 16:04:00 +0500 Subject: [PATCH] BOM-807 python3 compatibility --- common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py b/common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py index 1dd1fc3f7d..608c9ffe64 100644 --- a/common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py +++ b/common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py @@ -409,7 +409,7 @@ class TestXModuleHandler(TestCase): self.module.handle_ajax = Mock(return_value=response_data) response = self.module.xmodule_handler(self.request) self.assertIsInstance(response, webob.Response) - self.assertEqual(response.body, '{"test_key": "test_value"}') + self.assertEqual(response.body.decode('utf-8'), '{"test_key": "test_value"}') class TestXmlExport(XBlockWrapperTestMixin, TestCase):