mirror of
https://github.com/django/django.git
synced 2025-08-18 01:30:42 +00:00
[1.8.x] Ignored docutils deprecation warnings in runtests.py.
Backport of dbe79d9660
from master
This commit is contained in:
parent
29955ba341
commit
2bfd80d845
1 changed files with 3 additions and 0 deletions
|
@ -20,8 +20,11 @@ from django.utils.deprecation import (
|
||||||
RemovedInDjango19Warning, RemovedInDjango110Warning,
|
RemovedInDjango19Warning, RemovedInDjango110Warning,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Make deprecation warnings errors to ensure no usage of deprecated features.
|
||||||
warnings.simplefilter("error", RemovedInDjango19Warning)
|
warnings.simplefilter("error", RemovedInDjango19Warning)
|
||||||
warnings.simplefilter("error", RemovedInDjango110Warning)
|
warnings.simplefilter("error", RemovedInDjango110Warning)
|
||||||
|
# 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__)))
|
RUNTESTS_DIR = os.path.abspath(os.path.dirname(upath(__file__)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue