mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-13 23:53:09 +00:00
Added DeprecationWarning display.
This commit is contained in:
parent
45097424e4
commit
7f269b61f8
1 changed files with 2 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue