Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed incompatibility (usage of class decorator) with Python 2.5 intr…

…oduced 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
  • Loading branch information...
commit 5112acbf8fd1b2e600ad0384f6ff847ea5a8b027 1 parent 14bac2b
Ramiro Morales authored June 12, 2011
4  tests/regressiontests/test_client_regress/models.py
@@ -519,11 +519,11 @@ def test_login(self):
519 519
         self.assertEqual(response.context['user'].username, 'testclient')
520 520
 
521 521
 
522  
-# Remove the 'session' contrib app from INSTALLED_APPS
523  
-@override_settings(INSTALLED_APPS=tuple(filter(lambda a: a!='django.contrib.sessions', settings.INSTALLED_APPS)))
524 522
 class NoSessionsAppInstalled(SessionEngineTests):
525 523
     """#7836 - Test client can exercise sessions even when 'django.contrib.sessions' isn't installed."""
526 524
 
  525
+    # Remove the 'session' contrib app from INSTALLED_APPS
  526
+    @override_settings(INSTALLED_APPS=tuple(filter(lambda a: a!='django.contrib.sessions', settings.INSTALLED_APPS)))
527 527
     def test_session(self):
528 528
         # This request sets a session variable.
529 529
         response = self.client.get('/test_client_regress/set_session/')

0 notes on commit 5112acb

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