Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #13697 -- Modified multiple_database test to avoid a failure ob…

…served under Python 2.6.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 289f41921e5fc95ce6bfbc380d7fa761346ac0c7 1 parent 45e5fb1
Russell Keith-Magee authored June 05, 2010
8  tests/regressiontests/multiple_database/tests.py
@@ -883,7 +883,13 @@ def test_subquery(self):
883 883
         self.assertRaises(ValueError, str, qs.query)
884 884
 
885 885
         # Evaluating the query shouldn't work, either
886  
-        self.assertRaises(ValueError, list, qs)
  886
+        try:
  887
+            for obj in qs:
  888
+                pass
  889
+            self.fail('Iterating over query should raise ValueError')
  890
+        except ValueError:
  891
+            pass
  892
+
887 893
 
888 894
 class TestRouter(object):
889 895
     # A test router. The behaviour is vaguely master/slave, but the

0 notes on commit 289f419

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