From 96c66c7fdb1935ce8997910765fb30e50274f32a Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sun, 5 Feb 2006 06:24:35 +0000 Subject: [PATCH] magic-removal: Deferred import of django.db.models to allow --settings option to work on runtests.py. git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2279 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/runtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtests.py b/tests/runtests.py index c716811123..9e96a9229e 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -1,7 +1,6 @@ #!/usr/bin/env python import os, re, sys, time, traceback -import django.db.models # doctest is included in the same package as this module, because this testing # framework uses features only available in the Python 2.4 version of doctest, @@ -79,6 +78,7 @@ class TestRunner: from django.db import connection from django.core import management + import django.db.models # Determine which models we're going to test. test_models = get_test_models()