diff options
Diffstat (limited to 'openstack_auth/tests/run_tests.py')
-rw-r--r-- | openstack_auth/tests/run_tests.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/openstack_auth/tests/run_tests.py b/openstack_auth/tests/run_tests.py index b317967..bc1e8c9 100644 --- a/openstack_auth/tests/run_tests.py +++ b/openstack_auth/tests/run_tests.py @@ -13,18 +13,14 @@ # See the License for the specific language governing permissions and # limitations under the License. +import django +from django.test.runner import DiscoverRunner as test_runner import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_auth.tests.settings' -import django -if django.VERSION < (1, 8, 0): - from django.test.simple import DjangoTestSuiteRunner as test_runner -else: - from django.test.runner import DiscoverRunner as test_runner - if hasattr(django, 'setup'): django.setup() |