Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a misnamed variable introduced in commit 142ec8b

Refs #8404.
  • Loading branch information...
commit f1029b308f3ea967a5d93aea2b730671898a56f5 1 parent 142ec8b
@claudep claudep authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/auth/tests/views.py
View
2  django/contrib/auth/tests/views.py
@@ -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)
@skipIfCustomUser
Please sign in to comment.
Something went wrong with that request. Please try again.