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/deprecation | |
parent | 860eb01d175f88ce9f77bc823f9711eb078db796 (diff) | |
download | django-3131e9cef5f0a96f4fe667b0b1626c238153d1f1.tar.gz |
Fixed #23923 -- Promoted Django's deprecation warnings to errors in runtests.py
Diffstat (limited to 'tests/deprecation')
-rw-r--r-- | tests/deprecation/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/deprecation/tests.py b/tests/deprecation/tests.py index 185971dffa..79a6284cf6 100644 --- a/tests/deprecation/tests.py +++ b/tests/deprecation/tests.py @@ -238,6 +238,7 @@ class DeprecatingSimpleTestCaseUrls(unittest.TestCase): pass with warnings.catch_warnings(record=True) as recorded: + warnings.filterwarnings('always') suite = unittest.TestLoader().loadTestsFromTestCase(TempTestCase) with open(os.devnull, 'w') as devnull: unittest.TextTestRunner(stream=devnull, verbosity=2).run(suite) |