Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed the auth tests so they work when the AUTHENTICATION_BACKENDS se…

…tting is a list. Thanks to Patrick Altman for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14406 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 15b3350d30b2b34ae48a3f0f2ee0ca217d21bd3d 1 parent 6824c9b
Alex Gaynor authored October 31, 2010
4  django/contrib/auth/tests/auth_backends.py
@@ -150,7 +150,7 @@ class RowlevelBackendTest(TestCase):
150 150
 
151 151
     def setUp(self):
152 152
         self.curr_auth = settings.AUTHENTICATION_BACKENDS
153  
-        settings.AUTHENTICATION_BACKENDS = self.curr_auth + (self.backend,)
  153
+        settings.AUTHENTICATION_BACKENDS = tuple(self.curr_auth) + (self.backend,)
154 154
         self.user1 = User.objects.create_user('test', 'test@example.com', 'test')
155 155
         self.user2 = User.objects.create_user('test2', 'test2@example.com', 'test')
156 156
         self.user3 = User.objects.create_user('test3', 'test3@example.com', 'test')
@@ -232,7 +232,7 @@ class NoAnonymousUserBackendTest(TestCase):
232 232
 
233 233
     def setUp(self):
234 234
         self.curr_auth = settings.AUTHENTICATION_BACKENDS
235  
-        settings.AUTHENTICATION_BACKENDS = self.curr_auth + (self.backend,)
  235
+        settings.AUTHENTICATION_BACKENDS = tuple(self.curr_auth) + (self.backend,)
236 236
         self.user1 = AnonymousUser()
237 237
 
238 238
     def tearDown(self):

0 notes on commit 15b3350

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