Prevent UnboundLocalError in test_build_error_handler

This commit is contained in:
Daniel Neuhäuser 2013-05-22 22:58:12 +02:00
parent 43b6d0a6d0
commit 79ec3d81c1

View file

@ -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: