diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2011-06-12 23:22:34 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2011-06-12 23:22:34 +0000 |
| commit | 5112acbf8fd1b2e600ad0384f6ff847ea5a8b027 (patch) | |
| tree | 24906f046e470496d1db1b514e5032ac95ee4632 | |
| parent | 14bac2b97df03d98089e345976b0ec1463f0b5f7 (diff) | |
Fixed incompatibility (usage of class decorator) with Python 2.5 introduced in [16386]. Thanks ojii for the report via IRC.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/regressiontests/test_client_regress/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/test_client_regress/models.py b/tests/regressiontests/test_client_regress/models.py index 57ed618ea3..d23ed614f5 100644 --- a/tests/regressiontests/test_client_regress/models.py +++ b/tests/regressiontests/test_client_regress/models.py @@ -519,11 +519,11 @@ class SessionEngineTests(TestCase): self.assertEqual(response.context['user'].username, 'testclient') -# Remove the 'session' contrib app from INSTALLED_APPS -@override_settings(INSTALLED_APPS=tuple(filter(lambda a: a!='django.contrib.sessions', settings.INSTALLED_APPS))) class NoSessionsAppInstalled(SessionEngineTests): """#7836 - Test client can exercise sessions even when 'django.contrib.sessions' isn't installed.""" + # Remove the 'session' contrib app from INSTALLED_APPS + @override_settings(INSTALLED_APPS=tuple(filter(lambda a: a!='django.contrib.sessions', settings.INSTALLED_APPS))) def test_session(self): # This request sets a session variable. response = self.client.get('/test_client_regress/set_session/') |
