mirror of
https://github.com/django/django.git
synced 2025-04-20 07:14:35 +00:00
[1.9.x] Ignored docutils deprecation warnings in runtests.py.
Backport of dbe79d966025e3173557617113e2cca2eb1d1338 from master
This commit is contained in:
parent
411b8da362
commit
46850e2c85
@ -24,8 +24,11 @@ from django.utils.deprecation import (
|
||||
)
|
||||
from django.utils.log import DEFAULT_LOGGING
|
||||
|
||||
# Make deprecation warnings errors to ensure no usage of deprecated features.
|
||||
warnings.simplefilter("error", RemovedInDjango110Warning)
|
||||
warnings.simplefilter("error", RemovedInDjango20Warning)
|
||||
# Ignore known warnings in test dependencies.
|
||||
warnings.filterwarnings("ignore", "'U' mode is deprecated", DeprecationWarning, module='docutils.io')
|
||||
|
||||
RUNTESTS_DIR = os.path.abspath(os.path.dirname(upath(__file__)))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user