From 09f2cdbe1a43e79e31f5ea509b59d4c87db29832 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 16 Jun 2015 11:02:27 -0400 Subject: Refs #16860 -- Fixed a resource and deprecation warning in password validation. --- tests/auth_tests/test_validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/auth_tests/test_validators.py b/tests/auth_tests/test_validators.py index 3822c9c675..e70feb727d 100644 --- a/tests/auth_tests/test_validators.py +++ b/tests/auth_tests/test_validators.py @@ -41,7 +41,7 @@ class PasswordValidationTest(TestCase): self.assertIsNone(validate_password('sufficiently-long')) msg_too_short = 'This password is too short. It must contain at least 12 characters.' - with self.assertRaises(ValidationError, args=['This password is too short.']) as cm: + with self.assertRaises(ValidationError) as cm: validate_password('django4242') self.assertEqual(cm.exception.messages, [msg_too_short]) self.assertEqual(cm.exception.error_list[0].code, 'password_too_short') -- cgit v1.3