Also show warning via coverage and travis

fix_request_path_info
Diederik van der Boor 2018-01-31 22:52:07 +01:00
parent e21843aef9
commit d4cf32b5b6
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python -Wd
import sys
import warnings
from os.path import abspath, dirname
import dj_database_url
@ -7,6 +8,8 @@ import django
from django.conf import settings
from django.core.management import execute_from_command_line
# python -Wd, or run via coverage:
warnings.simplefilter('always', DeprecationWarning)
# Give feedback on used versions
sys.stderr.write('Using Python version {0} from {1}\n'.format(sys.version[:5], sys.executable))