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

0c6a339952
This commit is contained in:
Karl Hobley 2014-07-23 14:48:42 +01:00
parent a7afdd52aa
commit 2617174692

View file

@ -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)