mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed #13697 -- Modified multiple_database test to avoid a failure observed under Python 2.6.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -883,7 +883,13 @@ class QueryTestCase(TestCase): | ||||
|         self.assertRaises(ValueError, str, qs.query) | ||||
|  | ||||
|         # Evaluating the query shouldn't work, either | ||||
|         self.assertRaises(ValueError, list, qs) | ||||
|         try: | ||||
|             for obj in qs: | ||||
|                 pass | ||||
|             self.fail('Iterating over query should raise ValueError') | ||||
|         except ValueError: | ||||
|             pass | ||||
|  | ||||
|  | ||||
| class TestRouter(object): | ||||
|     # A test router. The behaviour is vaguely master/slave, but the | ||||
|   | ||||
		Reference in New Issue
	
	Block a user