mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Advanced deprecation warnings for Django 2.0.
This commit is contained in:
@@ -20,12 +20,12 @@ from django.test.utils import get_runner
|
||||
from django.utils import six
|
||||
from django.utils._os import upath
|
||||
from django.utils.deprecation import (
|
||||
RemovedInDjango20Warning, RemovedInDjango21Warning,
|
||||
RemovedInDjango21Warning, RemovedInDjango30Warning,
|
||||
)
|
||||
from django.utils.log import DEFAULT_LOGGING
|
||||
|
||||
# Make deprecation warnings errors to ensure no usage of deprecated features.
|
||||
warnings.simplefilter("error", RemovedInDjango20Warning)
|
||||
warnings.simplefilter("error", RemovedInDjango30Warning)
|
||||
warnings.simplefilter("error", RemovedInDjango21Warning)
|
||||
# Make runtime warning errors to ensure no usage of error prone patterns.
|
||||
warnings.simplefilter("error", RuntimeWarning)
|
||||
|
||||
Reference in New Issue
Block a user