Run 2to3 -f asserts . -w on edx-platform.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-asserts
This commit is contained in:
Feanil Patel
2019-12-30 10:22:19 -05:00
parent 52a1a72c97
commit 70294b0ad2
214 changed files with 1437 additions and 1437 deletions

View File

@@ -88,7 +88,7 @@ class TestXSSLinter(TestCase):
else:
lines_without_rule += 1
self.assertGreaterEqual(lines_with_rule, 1)
self.assertEquals(lines_without_rule, 0)
self.assertEqual(lines_without_rule, 0)
self.assertIsNone(re.search(r'test\.py.*{}'.format(self.ruleset.python_parse_error.rule_id), output))
self.assertIsNotNone(re.search(r'test\.py.*{}'.format(self.ruleset.python_wrap_html.rule_id), output))
# Assert no rule totals.