From 3a760435bcedbf8934f32bbf5fa7e5ff12b87c36 Mon Sep 17 00:00:00 2001 From: Ayub khan Date: Thu, 10 Oct 2019 14:49:27 +0500 Subject: [PATCH] BOM-905 test_graders.py tests fixed py3 shows missing argument istead of showing number --- common/lib/xmodule/xmodule/tests/test_graders.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/tests/test_graders.py b/common/lib/xmodule/xmodule/tests/test_graders.py index e4bc0a9346..f69b8b90bb 100644 --- a/common/lib/xmodule/xmodule/tests/test_graders.py +++ b/common/lib/xmodule/xmodule/tests/test_graders.py @@ -9,6 +9,7 @@ from datetime import datetime, timedelta import ddt from pytz import UTC +import six from six import text_type from lms.djangoapps.grades.scores import compute_percent @@ -316,7 +317,8 @@ class GraderTest(unittest.TestCase): ( # no drop_count {'type': "Homework", 'min_count': 0}, - u"__init__() takes at least 4 arguments (3 given)" + # pylint: disable=line-too-long + u"__init__() takes at least 4 arguments (3 given)" if six.PY2 else u"__init__() missing 1 required positional argument: 'drop_count'" ), ) @ddt.unpack