Enable deprecation warnings

This commit is contained in:
Armin Ronacher 2011-03-15 11:47:59 -04:00
parent 43cf3f307f
commit 97efffad9a

View file

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