summaryrefslogtreecommitdiff
path: root/tests/decorators
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-11-26 16:21:29 -0500
committerTim Graham <timograham@gmail.com>2014-11-29 10:27:04 -0500
commit3131e9cef5f0a96f4fe667b0b1626c238153d1f1 (patch)
tree201cc94c137466c1fe55885ef8dc7a02853705e6 /tests/decorators
parent860eb01d175f88ce9f77bc823f9711eb078db796 (diff)
downloaddjango-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.py3
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)