summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-10-28 13:24:00 -0400
committerTim Graham <timograham@gmail.com>2015-10-28 14:08:26 -0400
commit2bfd80d8450c49ea8f5d38d17cdb6963411ea92b (patch)
tree32b4e55bc9ff13a3fc8e428b3ccd5103c9ebb2f7 /tests
parent29955ba341c3691ebf6d416e237f9b0f66bd314b (diff)
[1.8.x] Ignored docutils deprecation warnings in runtests.py.
Backport of dbe79d966025e3173557617113e2cca2eb1d1338 from master
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index 7fdc227018..2ab29262b2 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -20,8 +20,11 @@ from django.utils.deprecation import (
RemovedInDjango19Warning, RemovedInDjango110Warning,
)
+# Make deprecation warnings errors to ensure no usage of deprecated features.
warnings.simplefilter("error", RemovedInDjango19Warning)
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__)))