Skip to content
Browse files

Fixed a misnamed variable introduced in commit 142ec8b

Refs #8404.
  • Loading branch information...
1 parent 142ec8b commit f1029b308f3ea967a5d93aea2b730671898a56f5 @claudep claudep committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/auth/tests/
2 django/contrib/auth/tests/
@@ -53,7 +53,7 @@ def login(self, password='password'):
def assertFormError(self, response, error):
"""Assert that error is found in response.context['form'] errors"""
form_errors = list(itertools.chain(*response.context['form'].errors.values()))
- self.assertIn(force_text(text), form_errors)
+ self.assertIn(force_text(error), form_errors)

0 comments on commit f1029b3

Please sign in to comment.
Something went wrong with that request. Please try again.