Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

magic-removal: Deferred import of django.db.models to allow --setting…

…s option to work on runtests.py.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 96c66c7fdb1935ce8997910765fb30e50274f32a 1 parent 6a90f49
Russell Keith-Magee authored February 05, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  tests/runtests.py
2  tests/runtests.py
... ...
@@ -1,7 +1,6 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 import os, re, sys, time, traceback
4  
-import django.db.models
5 4
 
6 5
 # doctest is included in the same package as this module, because this testing
7 6
 # framework uses features only available in the Python 2.4 version of doctest,
@@ -79,6 +78,7 @@ def run_tests(self):
79 78
 
80 79
         from django.db import connection
81 80
         from django.core import management
  81
+        import django.db.models
82 82
 
83 83
         # Determine which models we're going to test.
84 84
         test_models = get_test_models()

0 notes on commit 96c66c7

Please sign in to comment.
Something went wrong with that request. Please try again.