Browse Source

Prevent UnboundLocalError in test_build_error_handler

pull/742/head
Daniel Neuhäuser 12 years ago
parent
commit
79ec3d81c1
  1. 4
      flask/testsuite/basic.py

4
flask/testsuite/basic.py

@ -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…
Cancel
Save