python 3 fixes

This commit is contained in:
aarif
2019-09-12 17:29:34 +05:00
parent 20dc162375
commit 9301ec38f3
6 changed files with 6 additions and 6 deletions

View File

@@ -176,7 +176,7 @@ class TestGetCourseListMultipleCourses(CourseListTestMixin, ModuleStoreTestCase)
"""Verify that courses are filtered by the provided org key."""
# Create a second course to be filtered out of queries.
alternate_course = self.create_course(
org=md5(self.course.org).hexdigest()
org=md5(self.course.org.encode('utf-8')).hexdigest()
)
self.assertNotEqual(alternate_course.org, self.course.org)