summaryrefslogtreecommitdiff
path: root/tests/logging_tests
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/logging_tests
parent860eb01d175f88ce9f77bc823f9711eb078db796 (diff)
downloaddjango-3131e9cef5f0a96f4fe667b0b1626c238153d1f1.tar.gz
Fixed #23923 -- Promoted Django's deprecation warnings to errors in runtests.py
Diffstat (limited to 'tests/logging_tests')
-rw-r--r--tests/logging_tests/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py
index d0a3a92eff..eb760a56da 100644
--- a/tests/logging_tests/tests.py
+++ b/tests/logging_tests/tests.py
@@ -101,6 +101,7 @@ class WarningLoggerTests(TestCase):
# undocumented and (I assume) brittle.
self._old_capture_state = bool(getattr(logging, '_warnings_showwarning', False))
logging.captureWarnings(True)
+ warnings.filterwarnings('always')
# this convoluted setup is to avoid printing this deprecation to
# stderr during test running - as the test runner forces deprecations