forked from orbit-oss/flask
automated change using python-modernize: use 'as' in except
This commit is contained in:
parent
521398d5e7
commit
6caaa8a527
12 changed files with 32 additions and 32 deletions
|
|
@ -106,7 +106,7 @@ class TestToolsTestCase(FlaskTestCase):
|
|||
try:
|
||||
with c.session_transaction() as sess:
|
||||
pass
|
||||
except RuntimeError, e:
|
||||
except RuntimeError as e:
|
||||
self.assert_('Session backend did not open a session' in str(e))
|
||||
else:
|
||||
self.fail('Expected runtime error')
|
||||
|
|
@ -130,7 +130,7 @@ class TestToolsTestCase(FlaskTestCase):
|
|||
try:
|
||||
with c.session_transaction() as s:
|
||||
pass
|
||||
except RuntimeError, e:
|
||||
except RuntimeError as e:
|
||||
self.assert_('cookies' in str(e))
|
||||
else:
|
||||
self.fail('Expected runtime error')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue