Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enable deprecation warnings

  • Loading branch information...
commit 97efffad9a9858c0d966723d543e1186629631d4 1 parent 43cf3f3
@mitsuhiko authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/flask_tests.py
View
4 tests/flask_tests.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.