mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							c0c78f1b70
						
					
				
				
					commit
					f7969b0920
				
			| @@ -35,7 +35,7 @@ class NullFkTests(TestCase): | ||||
|         ) | ||||
|  | ||||
|         # Regression test for #7530, #7716. | ||||
|         self.assertTrue(Comment.objects.select_related('post').filter(post__isnull=True)[0].post is None) | ||||
|         self.assertIsNone(Comment.objects.select_related('post').filter(post__isnull=True)[0].post) | ||||
|  | ||||
|         self.assertQuerysetEqual( | ||||
|             Comment.objects.select_related('post__forum__system_info__system_details'), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user