Prevent UnboundLocalError in test_build_error_handler
This commit is contained in:
parent
43b6d0a6d0
commit
79ec3d81c1
1 changed files with 2 additions and 2 deletions
|
|
@ -753,8 +753,8 @@ class BasicFunctionalityTestCase(FlaskTestCase):
|
|||
try:
|
||||
with app.test_request_context():
|
||||
flask.url_for('spam')
|
||||
except BuildError as error:
|
||||
pass
|
||||
except BuildError as err:
|
||||
error = err
|
||||
try:
|
||||
raise RuntimeError('Test case where BuildError is not current.')
|
||||
except RuntimeError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue