X-Git-Url: https://git.mdrn.pl/django-pagination.git/blobdiff_plain/abf535d21fd19b257e5d6fecfd60e470cc12de7f..1af932e4c4f93f522c2f81e14deefb783391dd75:/fnp_django_pagination/tests/runner.py?ds=sidebyside 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))