fix
[django-pagination.git] / fnp_django_pagination / tests / runner.py
index 843a5a5..4604e6b 100755 (executable)
@@ -9,11 +9,7 @@ from django.core.management import call_command
 
 def runtests():
     os.environ['DJANGO_SETTINGS_MODULE'] = 'fnp_django_pagination.tests.settings'
 
 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))
 
     failures = call_command('test', 'fnp_django_pagination')
     sys.exit(bool(failures))