forked from orbit-oss/flask
Enable deprecation warnings
This commit is contained in:
parent
43cf3f307f
commit
97efffad9a
1 changed files with 4 additions and 0 deletions
|
|
@ -47,6 +47,10 @@ SECRET_KEY = 'devkey'
|
||||||
def catch_warnings():
|
def catch_warnings():
|
||||||
"""Catch warnings in a with block in a list"""
|
"""Catch warnings in a with block in a list"""
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
# make sure deprecation warnings are active in tests
|
||||||
|
warnings.simplefilter('default', category=DeprecationWarning)
|
||||||
|
|
||||||
filters = warnings.filters
|
filters = warnings.filters
|
||||||
warnings.filters = filters[:]
|
warnings.filters = filters[:]
|
||||||
old_showwarning = warnings.showwarning
|
old_showwarning = warnings.showwarning
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue