Author: ramiro
Date: 2011-07-10 06:52:04 -0700 (Sun, 10 Jul 2011)
New Revision: 16529

Modified:
   django/trunk/tests/regressiontests/multiple_database/tests.py
Log:
Fixed a typo in the `multiple_database` tests. Thanks Jim Dalton.

Also, removed some unused imports.

Modified: django/trunk/tests/regressiontests/multiple_database/tests.py
===================================================================
--- django/trunk/tests/regressiontests/multiple_database/tests.py       
2011-07-09 12:19:29 UTC (rev 16528)
+++ django/trunk/tests/regressiontests/multiple_database/tests.py       
2011-07-10 13:52:04 UTC (rev 16529)
@@ -1,6 +1,5 @@
 import datetime
 import pickle
-import sys
 from StringIO import StringIO
 
 from django.conf import settings
@@ -8,17 +7,10 @@
 from django.core import management
 from django.db import connections, router, DEFAULT_DB_ALIAS
 from django.db.models import signals
-from django.db.utils import ConnectionRouter
 from django.test import TestCase
 
 from models import Book, Person, Pet, Review, UserProfile
 
-try:
-    # we only have these models if the user is using multi-db, it's safe the
-    # run the tests without them though.
-    from models import Article, article_using
-except ImportError:
-    pass
 
 class QueryTestCase(TestCase):
     multi_db = True
@@ -1702,7 +1694,7 @@
         self.old_routers = router.routers
 
     def tearDown(self):
-        router.routser = self.old_routers
+        router.routers = self.old_routers
 
     def _write_to_other(self):
         "Sends all writes to 'other'."

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to