Don't only catch BadRequest key errors but all bad request errors.

This commit is contained in:
Armin Ronacher 2011-08-08 21:46:53 +02:00
parent 505cd663cd
commit acac64e36a
3 changed files with 13 additions and 11 deletions

View file

@ -601,7 +601,7 @@ class BasicFunctionalityTestCase(unittest.TestCase):
c = app.test_client()
assert c.get('/fail').status_code == 400
app.config['TRAP_BAD_REQUEST_KEY_ERRORS'] = True
app.config['TRAP_BAD_REQUEST_ERRORS'] = True
c = app.test_client()
try:
c.get('/fail')