mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	[3.13] GH-117195: Avoid assertion error in object.__sizeof__ (GH-117220) (GH-119456)
				
					
				
			This commit is contained in:
		
							parent
							
								
									dbe4f8a2e8
								
							
						
					
					
						commit
						251ef2e36f
					
				
					 3 changed files with 9 additions and 2 deletions
				
			
		|  | @ -1639,6 +1639,8 @@ class MyInt(int): | |||
|                     MyInt.__basicsize__ + MyInt.__itemsize__ * ndigits | ||||
|                 ) | ||||
| 
 | ||||
|         # GH-117195 -- This shouldn't crash | ||||
|         object.__sizeof__(1) | ||||
| 
 | ||||
| if __name__ == "__main__": | ||||
|     unittest.main() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)