diff --git a/runtests.py b/runtests.py index 62ebbef7..53b02af2 100755 --- a/runtests.py +++ b/runtests.py @@ -6,7 +6,6 @@ import django from django.conf import settings -from django.test.runner import DiscoverRunner sys.path.insert(0, abspath(dirname(__file__))) @@ -179,6 +178,8 @@ def main(): django.setup() + from django.test.runner import DiscoverRunner + tags = namespace.tag failures = DiscoverRunner( failfast=bool(namespace.failfast), pdb=bool(namespace.pdb), tags=tags