mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[py3k] Silence many warnings while running the tests.
This commit is contained in:
@@ -358,7 +358,7 @@ class SimpleTestCase(ut2.TestCase):
|
||||
args: Extra args.
|
||||
kwargs: Extra kwargs.
|
||||
"""
|
||||
return self.assertRaisesRegexp(expected_exception,
|
||||
return six.assertRaisesRegex(self, expected_exception,
|
||||
re.escape(expected_message), callable_obj, *args, **kwargs)
|
||||
|
||||
def assertFieldOutput(self, fieldclass, valid, invalid, field_args=None,
|
||||
|
||||
Reference in New Issue
Block a user