jarus/flask-testing — pull request #56 by bsandrow (2014-06-26 17:07:55+00:00)
Title: Don't mask setup errors

`_post_teardown()` always happens, and sometimes the `app` and/or `_ctx` attributes don't exist anymore. This triggers an `AttributeError` exception, which masks whatever the original exception was. Using `getattr()` allows the `AttributeError` to be avoided.