diff options
| author | Tim Graham <timograham@gmail.com> | 2017-09-02 21:55:59 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-09-22 12:51:19 -0400 |
| commit | 4a461d49c775331ed52418f007974d61be1e06b9 (patch) | |
| tree | 3a4b5d6a96c1fc395fcaa3e263290386f9c81525 /tests | |
| parent | 5446b72003790fc98bd926f7196b26cc5db63c5a (diff) | |
Advanced deprecation warnings for Django 2.1.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/runtests.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index 7f4f1670c5..57b8a45404 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -17,14 +17,11 @@ 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 ( - RemovedInDjango21Warning, RemovedInDjango30Warning, -) +from django.utils.deprecation import RemovedInDjango30Warning from django.utils.log import DEFAULT_LOGGING # Make deprecation warnings errors to ensure no usage of deprecated features. warnings.simplefilter("error", RemovedInDjango30Warning) -warnings.simplefilter("error", RemovedInDjango21Warning) # Make runtime warning errors to ensure no usage of error prone patterns. warnings.simplefilter("error", RuntimeWarning) # Ignore known warnings in test dependencies. |
