diff options
| author | Tim Graham <timograham@gmail.com> | 2018-05-17 10:29:30 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-05-17 11:05:45 -0400 |
| commit | b9dd8512f2dfc9ac2046accff8e95b29a97cfeee (patch) | |
| tree | 452489917a0cfa35d8a94ee1328857ada666c3ca /tests | |
| parent | 74a313942c8a63565213631b781638973749bdbc (diff) | |
Advanced deprecation warnings for Django 2.2.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/runtests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index b1baf8d31e..9d67a15a94 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -17,7 +17,9 @@ from django.test import TestCase, TransactionTestCase from django.test.runner import default_test_processes from django.test.selenium import SeleniumTestCaseBase from django.test.utils import get_runner -from django.utils.deprecation import RemovedInDjango30Warning +from django.utils.deprecation import ( + RemovedInDjango30Warning, RemovedInDjango31Warning, +) from django.utils.log import DEFAULT_LOGGING try: @@ -30,6 +32,7 @@ else: # Make deprecation warnings errors to ensure no usage of deprecated features. warnings.simplefilter("error", RemovedInDjango30Warning) +warnings.simplefilter('error', RemovedInDjango31Warning) # Make runtime warning errors to ensure no usage of error prone patterns. warnings.simplefilter("error", RuntimeWarning) # Ignore known warnings in test dependencies. |
