diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-10-31 16:25:29 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-10-31 16:25:29 +0000 |
| commit | 15b3350d30b2b34ae48a3f0f2ee0ca217d21bd3d (patch) | |
| tree | 6ba17a9a491b36d817d97a44f758c2373b3f9825 | |
| parent | 6824c9b7962a04ba03d846a8dbe2507d166672a6 (diff) | |
Fixed the auth tests so they work when the AUTHENTICATION_BACKENDS setting 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
| -rw-r--r-- | django/contrib/auth/tests/auth_backends.py | 4 |
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 1d2d3a3884..2ba8a73639 100644 --- a/django/contrib/auth/tests/auth_backends.py +++ b/django/contrib/auth/tests/auth_backends.py @@ -150,7 +150,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') @@ -232,7 +232,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): |
