From 26171746921102a3fe2b328d7cae7fee529baf86 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Wed, 23 Jul 2014 14:48:42 +0100 Subject: [PATCH] Don't ignore DeprecationWarnings This was previously done for us in Django 1.6. But they reverted back to the default Python configuration to ignore these warnings causing a test to break https://github.com/django/django/commit/0c6a3399523d850cfbd20de54cd089419a47383d --- runtests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtests.py b/runtests.py index 3a7399233..7961d2e19 100755 --- a/runtests.py +++ b/runtests.py @@ -2,6 +2,7 @@ import sys import os import shutil +import warnings from django.core.management import execute_from_command_line @@ -12,6 +13,9 @@ os.environ['DJANGO_SETTINGS_MODULE'] = 'wagtail.tests.settings' def runtests(): + # Don't ignore DeprecationWarnings + warnings.simplefilter('default', DeprecationWarning) + argv = sys.argv[:1] + ['test'] + sys.argv[1:] try: execute_from_command_line(argv)