Also show warning via coverage and travis
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env python -Wd
|
#!/usr/bin/env python -Wd
|
||||||
import sys
|
import sys
|
||||||
|
import warnings
|
||||||
from os.path import abspath, dirname
|
from os.path import abspath, dirname
|
||||||
|
|
||||||
import dj_database_url
|
import dj_database_url
|
||||||
@@ -7,6 +8,8 @@ import django
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core.management import execute_from_command_line
|
from django.core.management import execute_from_command_line
|
||||||
|
|
||||||
|
# python -Wd, or run via coverage:
|
||||||
|
warnings.simplefilter('always', DeprecationWarning)
|
||||||
|
|
||||||
# Give feedback on used versions
|
# Give feedback on used versions
|
||||||
sys.stderr.write('Using Python version {0} from {1}\n'.format(sys.version[:5], sys.executable))
|
sys.stderr.write('Using Python version {0} from {1}\n'.format(sys.version[:5], sys.executable))
|
||||||
|
|||||||
Reference in New Issue
Block a user