From 46850e2c850b50279c946b4078601f2b41ef7554 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 28 Oct 2015 13:24:00 -0400 Subject: [PATCH] [1.9.x] Ignored docutils deprecation warnings in runtests.py. Backport of dbe79d966025e3173557617113e2cca2eb1d1338 from master --- tests/runtests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/runtests.py b/tests/runtests.py index 4c31090615..096f05b164 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -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__)))