mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[py3] Fixed comparison of list and range()
A test compared list directly against a range(). This is py3 incompatible. Fixed by using list(range()).
This commit is contained in:
		| @@ -806,7 +806,7 @@ class Queries1Tests(BaseQuerysetTest): | ||||
|         qs = Tag.objects.values_list('id', flat=True).order_by('id') | ||||
|         qs.query.bump_prefix() | ||||
|         first = qs[0] | ||||
|         self.assertEqual(list(qs), range(first, first+5)) | ||||
|         self.assertEqual(list(qs), list(range(first, first+5))) | ||||
|  | ||||
|     def test_ticket8439(self): | ||||
|         # Complex combinations of conjunctions, disjunctions and nullable | ||||
|   | ||||
		Reference in New Issue
	
	Block a user