mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[5.1.x] Fixed #35603 -- Prevented F.__contains__() from hanging.
Regression in94b6f101f7. Backport of6b3f55446ffrom main.
This commit is contained in:
		
				
					committed by
					
						 Sarah Boyce
						Sarah Boyce
					
				
			
			
				
	
			
			
			
						parent
						
							5eef80b56e
						
					
				
				
					commit
					8fb7d30456
				
			| @@ -1302,6 +1302,11 @@ class FTests(SimpleTestCase): | ||||
|         self.assertNotEqual(f, value) | ||||
|         self.assertNotEqual(value, f) | ||||
|  | ||||
|     def test_contains(self): | ||||
|         msg = "argument of type 'F' is not iterable" | ||||
|         with self.assertRaisesMessage(TypeError, msg): | ||||
|             "" in F("name") | ||||
|  | ||||
|  | ||||
| class ExpressionsTests(TestCase): | ||||
|     def test_F_reuse(self): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user