web/test/unittest_application.py
changeset 8695 358d8bed9626
parent 8694 d901c36bcfce
child 9017 aa709bc6b6c1
child 9428 946aded614f3
--- a/web/test/unittest_application.py	Thu Feb 14 15:39:23 2013 +0100
+++ b/web/test/unittest_application.py	Thu Feb 14 15:38:25 2013 +0100
@@ -332,7 +332,7 @@
         self.assertAuthFailure(req)
         try:
             form = self.app_handle_request(req, 'login')
-        except Redirect, redir:
+        except Redirect as redir:
             self.fail('anonymous user should get login form')
         self.assertTrue('__login' in form)
         self.assertTrue('__password' in form)