Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a misnamed variable introduced in commit 142ec8b

Refs #8404.
  • Loading branch information...
commit f1029b308f3ea967a5d93aea2b730671898a56f5 1 parent 142ec8b
Claude Paroz authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/auth/tests/views.py
2  django/contrib/auth/tests/views.py
@@ -53,7 +53,7 @@ def login(self, password='password'):
53 53
     def assertFormError(self, response, error):
54 54
         """Assert that error is found in response.context['form'] errors"""
55 55
         form_errors = list(itertools.chain(*response.context['form'].errors.values()))
56  
-        self.assertIn(force_text(text), form_errors)
  56
+        self.assertIn(force_text(error), form_errors)
57 57
 
58 58
 
59 59
 @skipIfCustomUser

0 notes on commit f1029b3

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