summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2010-10-31 16:26:04 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2010-10-31 16:26:04 +0000
commit3a25098c25a30d2eb7bf7d0f9e14d6db74a99dcf (patch)
tree93a57cb0703c1c5771dd959091f603bb806fb831
parent20c6f3f3d1a58960fcc141eb461f244ebdf266d0 (diff)
[1.2.X] Fixed the auth tests so they work when the AUTHENTICATION_BACKENDS setting is a list. Thanks to Patrick Altman for the report. Backport of [14406].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/auth/tests/auth_backends.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/auth/tests/auth_backends.py b/django/contrib/auth/tests/auth_backends.py
index 8eaf2cb3e7..bc61e99c6b 100644
--- a/django/contrib/auth/tests/auth_backends.py
+++ b/django/contrib/auth/tests/auth_backends.py
@@ -148,7 +148,7 @@ class RowlevelBackendTest(TestCase):
def setUp(self):
self.curr_auth = settings.AUTHENTICATION_BACKENDS
- settings.AUTHENTICATION_BACKENDS = self.curr_auth + (self.backend,)
+ settings.AUTHENTICATION_BACKENDS = tuple(self.curr_auth) + (self.backend,)
self.user1 = User.objects.create_user('test', 'test@example.com', 'test')
self.user2 = User.objects.create_user('test2', 'test2@example.com', 'test')
self.user3 = User.objects.create_user('test3', 'test3@example.com', 'test')
@@ -226,7 +226,7 @@ class NoAnonymousUserBackendTest(TestCase):
def setUp(self):
self.curr_auth = settings.AUTHENTICATION_BACKENDS
- settings.AUTHENTICATION_BACKENDS = self.curr_auth + (self.backend,)
+ settings.AUTHENTICATION_BACKENDS = tuple(self.curr_auth) + (self.backend,)
self.user1 = AnonymousUser()
def tearDown(self):