diff options
| author | Tim Graham <timograham@gmail.com> | 2015-10-28 13:24:00 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-10-28 13:58:31 -0400 |
| commit | dbe79d966025e3173557617113e2cca2eb1d1338 (patch) | |
| tree | 30e5e533e46608856889ae16b12c075d2d854944 | |
| parent | 6b5ae92927cb69e8709ab2bb05f6721a7cd37a3c (diff) | |
Ignored docutils deprecation warnings in runtests.py.
| -rwxr-xr-x | tests/runtests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index 955f96df7f..af7b4046e8 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -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__))) |
