Skip to content
Myr

Enable deprecation warnings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 43cf3f3 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • tests:+4 added−0 removed

1 file+4 added−0 removed

modified:tests/flask_tests.py+4 added
45 unmodified lines
46@contextmanager47def catch_warnings():48 """Catch warnings in a with block in a list"""49 import warnings5051 # make sure deprecation warnings are active in tests52 warnings.simplefilter('default', category=DeprecationWarning)5354 filters = warnings.filters55 warnings.filters = filters[:]56 old_showwarning = warnings.showwarning57 log = []
1447 unmodified lines