diff options
Diffstat (limited to 'tests/test_recursive.py')
-rw-r--r-- | tests/test_recursive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_recursive.py b/tests/test_recursive.py index e79d586..34f2f66 100644 --- a/tests/test_recursive.py +++ b/tests/test_recursive.py @@ -37,7 +37,7 @@ def forward(app): assert 'Page not found' in res try: res = app.get('/recurse') - except AssertionError, e: + except AssertionError as e: if str(e).startswith('Forwarding loop detected'): pass else: @@ -89,7 +89,7 @@ def test_ForwardRequest_factory(): assert 'Page not found' in res try: res = app.get('/recurse') - except AssertionError, e: + except AssertionError as e: if str(e).startswith('Forwarding loop detected'): pass else: |