X-Git-Url: https://git.mdrn.pl/django-pagination.git/blobdiff_plain/abf535d21fd19b257e5d6fecfd60e470cc12de7f..refs/heads/master:/fnp_django_pagination/tests/runner.py diff --git a/fnp_django_pagination/tests/runner.py b/fnp_django_pagination/tests/runner.py index 843a5a5..4604e6b 100755 --- a/fnp_django_pagination/tests/runner.py +++ b/fnp_django_pagination/tests/runner.py @@ -9,11 +9,7 @@ from django.core.management import call_command def runtests(): os.environ['DJANGO_SETTINGS_MODULE'] = 'fnp_django_pagination.tests.settings' - - try: - django.setup() - except AttributeError: # for Django 1.6 compatible - pass + django.setup() failures = call_command('test', 'fnp_django_pagination') sys.exit(bool(failures))