diff --git a/common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py b/common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py index 1dd1fc3f7d..c8422c9d51 100644 --- a/common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py +++ b/common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py @@ -394,7 +394,7 @@ class TestXModuleHandler(TestCase): def test_xmodule_handler_return_value(self): response = self.module.xmodule_handler(self.request) self.assertIsInstance(response, webob.Response) - self.assertEqual(response.body, '{}') + self.assertEqual(response.body.decode('utf-8'), '{}') @ddt.data( u'{"test_key": "test_value"}',