changeset 8695 | 358d8bed9626 |
parent 6340 | 470d8e828fda |
--- a/web/test/unittest_views_apacherewrite.py Thu Feb 14 15:39:23 2013 +0100 +++ b/web/test/unittest_views_apacherewrite.py Thu Feb 14 15:38:25 2013 +0100 @@ -40,7 +40,7 @@ try: urlrewriter.rewrite('logilab.fr', '/whatever', req) self.fail('redirect exception expected') - except Redirect, ex: + except Redirect as ex: self.assertEqual(ex.location, 'http://www.logilab.fr/whatever') self.assertEqual(urlrewriter.rewrite('www.logilab.fr', '/whatever', req), '/whatever')