Skip to content

Commit

Permalink
Enable deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Mar 15, 2011
1 parent 43cf3f3 commit 97efffa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/flask_tests.py
Expand Up @@ -47,6 +47,10 @@ def has_encoding(name):
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
Expand Down

0 comments on commit 97efffa

Please sign in to comment.