Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #5979 -- Always use SITE_ID=1 when running Django's core tests.…

… This

makes things much easier. Thanks, George Vilches.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6814 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b3db18817a4034f0af0219b3436c1ceccf61789d 1 parent a72324b
Malcolm Tredinnick authored

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

  1. 3  tests/runtests.py
3  tests/runtests.py
@@ -107,8 +107,7 @@ def django_tests(verbosity, interactive, test_labels):
107 107
         'django.contrib.auth.middleware.AuthenticationMiddleware',
108 108
         'django.middleware.common.CommonMiddleware',
109 109
     )
110  
-    if not hasattr(settings, 'SITE_ID'):
111  
-        settings.SITE_ID = 1
  110
+    settings.SITE_ID = 1
112 111
 
113 112
     # Load all the ALWAYS_INSTALLED_APPS.
114 113
     # (This import statement is intentionally delayed until after we

0 notes on commit b3db188

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