From ee61f26fedac1060e26c9441c33428b7a32c6caa Mon Sep 17 00:00:00 2001 From: Ayub khan Date: Fri, 23 Aug 2019 16:27:09 +0500 Subject: [PATCH] BOM-142 Py3 Assertion Error --- lms/djangoapps/instructor_analytics/tests/test_csvs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/instructor_analytics/tests/test_csvs.py b/lms/djangoapps/instructor_analytics/tests/test_csvs.py index e496f6964c..23c589c6ae 100644 --- a/lms/djangoapps/instructor_analytics/tests/test_csvs.py +++ b/lms/djangoapps/instructor_analytics/tests/test_csvs.py @@ -37,7 +37,7 @@ class TestAnalyticsCSVS(TestCase): res = create_csv_response('robot.csv', header, datarows) self.assertEqual(res['Content-Type'], 'text/csv') self.assertEqual(res['Content-Disposition'], u'attachment; filename={0}'.format('robot.csv')) - self.assertEqual(res.content.strip(), '') + self.assertEqual(res.content.strip().decode('utf-8'), '') class TestAnalyticsFormatDictlist(TestCase):