Commits

Anonymous committed 8d61eae

Django 1.2 compatible test runner

Comments (0)

Files changed (1)

lockdown/tests/runtests.py

         test_args = ['lockdown']
     parent = dirname(dirname(dirname(abspath(__file__))))
     sys.path.insert(0, parent)
-    from tests import django_settings
-    from django.test.utils import get_runner
-    test_runner = get_runner(django_settings)
-    failures = test_runner(test_args, verbosity=1, interactive=True)
+    from django.test.simple import run_tests
+    failures = run_tests(test_args, verbosity=1, interactive=True)
     sys.exit(failures)