Merge pull request #21994 from edx/BOM-914

Fixed all instances of "TypeError: a bytes-like object is required, not 'str" - BOM-914
This commit is contained in:
Aarif
2019-10-16 01:44:31 +05:00
committed by GitHub
7 changed files with 11 additions and 17 deletions

View File

@@ -564,7 +564,7 @@ class ImportTestCase(BaseCourseTestCase):
# Expect to find an error/exception about characters in "®esources"
expect = "InvalidKeyError"
errors = [
(msg.encode("utf-8"), err.encode("utf-8"))
(msg, err)
for msg, err
in modulestore.get_course_errors(course.id)
]