Added DeprecationWarning display.

This commit is contained in:
Mariusz Felisiak 2017-06-22 20:56:14 +02:00
parent 45097424e4
commit 7f269b61f8
No known key found for this signature in database
GPG key ID: 2EF56372BA48CD1B

View file

@ -1,6 +1,7 @@
#!/usr/bin/env python
import os
import sys
import warnings
import django
from django.conf import settings
@ -47,6 +48,7 @@ def runtests():
MIDDLEWARE_CLASSES=(),
)
warnings.simplefilter('always', DeprecationWarning)
if django.VERSION >= (1, 7):
django.setup()
failures = call_command(