mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Ignored docutils deprecation warnings in runtests.py.
This commit is contained in:
parent
6b5ae92927
commit
dbe79d9660
@ -22,7 +22,10 @@ from django.utils._os import upath
|
||||
from django.utils.deprecation import RemovedInDjango20Warning
|
||||
from django.utils.log import DEFAULT_LOGGING
|
||||
|
||||
# Make deprecation warnings errors to ensure no usage of deprecated features.
|
||||
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…
Reference in New Issue
Block a user