mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	gh-111654: remove redundant decref in LOAD_FROM_DICT_OR_DEREF (#111655)
This commit is contained in:
		
							parent
							
								
									93206d19a3
								
							
						
					
					
						commit
						3a1b09e6d0
					
				
					 5 changed files with 12 additions and 6 deletions
				
			
		|  | @ -1844,6 +1844,13 @@ def f(): | |||
|         self.assertIn("nonsense", err.getvalue()) | ||||
|         self.assertIn("ZeroDivisionError", err.getvalue()) | ||||
| 
 | ||||
|     def test_gh_111654(self): | ||||
|         def f(): | ||||
|             class TestClass: | ||||
|                 TestClass | ||||
| 
 | ||||
|         self.assertRaises(NameError, f) | ||||
| 
 | ||||
|     # Note: name suggestion tests live in `test_traceback`. | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AN Long
						AN Long