Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #14096 -- Corrected Python 2.4 syntax issue. Thanks to PaulM fo…

…r the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 597e03cd741b5c732317a5384185d70520a76cde 1 parent b3dc3a0
Russell Keith-Magee authored August 14, 2010

Showing 1 changed file with 18 additions and 18 deletions. Show diff stats Hide diff stats

  1. 36  django/contrib/sessions/tests.py
36  django/contrib/sessions/tests.py
@@ -207,32 +207,32 @@ def test_get_expire_at_browser_close(self):
207 207
         # Tests get_expire_at_browser_close with different settings and different
208 208
         # set_expiry calls
209 209
         try:
210  
-            original_expire_at_browser_close = settings.SESSION_EXPIRE_AT_BROWSER_CLOSE
211  
-            settings.SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  210
+            try:
  211
+                original_expire_at_browser_close = settings.SESSION_EXPIRE_AT_BROWSER_CLOSE
  212
+                settings.SESSION_EXPIRE_AT_BROWSER_CLOSE = False
212 213
 
213  
-            self.session.set_expiry(10)
214  
-            self.assertFalse(self.session.get_expire_at_browser_close())
  214
+                self.session.set_expiry(10)
  215
+                self.assertFalse(self.session.get_expire_at_browser_close())
215 216
 
216  
-            self.session.set_expiry(0)
217  
-            self.assertTrue(self.session.get_expire_at_browser_close())
  217
+                self.session.set_expiry(0)
  218
+                self.assertTrue(self.session.get_expire_at_browser_close())
218 219
 
219  
-            self.session.set_expiry(None)
220  
-            self.assertFalse(self.session.get_expire_at_browser_close())
  220
+                self.session.set_expiry(None)
  221
+                self.assertFalse(self.session.get_expire_at_browser_close())
221 222
 
222  
-            settings.SESSION_EXPIRE_AT_BROWSER_CLOSE = True
  223
+                settings.SESSION_EXPIRE_AT_BROWSER_CLOSE = True
223 224
 
224  
-            self.session.set_expiry(10)
225  
-            self.assertFalse(self.session.get_expire_at_browser_close())
  225
+                self.session.set_expiry(10)
  226
+                self.assertFalse(self.session.get_expire_at_browser_close())
226 227
 
227  
-            self.session.set_expiry(0)
228  
-            self.assertTrue(self.session.get_expire_at_browser_close())
  228
+                self.session.set_expiry(0)
  229
+                self.assertTrue(self.session.get_expire_at_browser_close())
229 230
 
230  
-            self.session.set_expiry(None)
231  
-            self.assertTrue(self.session.get_expire_at_browser_close())
232  
-
233  
-        except:
234  
-            raise
  231
+                self.session.set_expiry(None)
  232
+                self.assertTrue(self.session.get_expire_at_browser_close())
235 233
 
  234
+            except:
  235
+                raise
236 236
         finally:
237 237
             settings.SESSION_EXPIRE_AT_BROWSER_CLOSE = original_expire_at_browser_close
238 238
 

0 notes on commit 597e03c

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