From 9b39f9159986715f374ec85649bdee5f50fa0619 Mon Sep 17 00:00:00 2001 From: Awais Qureshi <awais.qureshi@arbisoft.com> Date: Fri, 27 Sep 2019 18:21:52 +0500 Subject: [PATCH] BOM-529 Python3 fix. --- .../management/commands/tests/test_fix_not_found.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/management/commands/tests/test_fix_not_found.py b/cms/djangoapps/contentstore/management/commands/tests/test_fix_not_found.py index 5a0894b6783..4902606b704 100644 --- a/cms/djangoapps/contentstore/management/commands/tests/test_fix_not_found.py +++ b/cms/djangoapps/contentstore/management/commands/tests/test_fix_not_found.py @@ -20,7 +20,12 @@ class TestFixNotFound(ModuleStoreTestCase): """ Test fix_not_found command with no arguments """ - with self.assertRaisesRegexp(CommandError, "Error: too few arguments"): + if six.PY2: + msg = "Error: too few arguments" + else: + msg = "Error: the following arguments are required: course_id" + + with self.assertRaisesRegexp(CommandError, msg): call_command('fix_not_found') def test_fix_not_found_non_split(self): -- GitLab