Browse Source

Enable deprecation warnings

pull/210/head
Armin Ronacher 14 years ago
parent
commit
97efffad9a
  1. 4
      tests/flask_tests.py

4
tests/flask_tests.py

@ -47,6 +47,10 @@ SECRET_KEY = 'devkey'
def catch_warnings():
"""Catch warnings in a with block in a list"""
import warnings
# make sure deprecation warnings are active in tests
warnings.simplefilter('default', category=DeprecationWarning)
filters = warnings.filters
warnings.filters = filters[:]
old_showwarning = warnings.showwarning

Loading…
Cancel
Save