diff options
author | Tim Graham <timograham@gmail.com> | 2014-11-26 16:21:29 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2014-11-29 10:27:04 -0500 |
commit | 3131e9cef5f0a96f4fe667b0b1626c238153d1f1 (patch) | |
tree | 201cc94c137466c1fe55885ef8dc7a02853705e6 /tests/decorators | |
parent | 860eb01d175f88ce9f77bc823f9711eb078db796 (diff) | |
download | django-3131e9cef5f0a96f4fe667b0b1626c238153d1f1.tar.gz |
Fixed #23923 -- Promoted Django's deprecation warnings to errors in runtests.py
Diffstat (limited to 'tests/decorators')
-rw-r--r-- | tests/decorators/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/decorators/tests.py b/tests/decorators/tests.py index 4a49dcc71d..467901eebf 100644 --- a/tests/decorators/tests.py +++ b/tests/decorators/tests.py @@ -64,7 +64,8 @@ full_decorator = compose( ) # suppress the deprecation warning of memoize -with warnings.catch_warnings(record=True): +with warnings.catch_warnings(): + warnings.filterwarnings('ignore') fully_decorated = memoize(fully_decorated, {}, 1) fully_decorated = full_decorator(fully_decorated) |