From 441e6b57b21151d6a6e50fddf725b6a8d5cf86a0 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Wed, 11 Sep 2019 16:17:30 +0500 Subject: [PATCH] BOM-409 Fixing python3 --- lms/djangoapps/dashboard/tests/test_sysadmin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/dashboard/tests/test_sysadmin.py b/lms/djangoapps/dashboard/tests/test_sysadmin.py index deec7afdd2..3bdb9d5a41 100644 --- a/lms/djangoapps/dashboard/tests/test_sysadmin.py +++ b/lms/djangoapps/dashboard/tests/test_sysadmin.py @@ -194,11 +194,11 @@ class TestSysAdminMongoCourseImport(SysadminBaseTestCase): # Make sure we don't have any git hashes on the page response = self.client.get(reverse('sysadmin_courses')) - self.assertNotRegexpMatches(response.content, table_re) + self.assertNotRegexpMatches(response.content.decode('utf-8'), table_re) # Now add the course and make sure it does match response = self._add_edx4edx() - self.assertRegexpMatches(response.content, table_re) + self.assertRegexpMatches(response.content.decode('utf-8'), table_re) def test_gitlogs(self): """