mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	merge 3.2
This commit is contained in:
		
						commit
						000bd4254f
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -551,6 +551,7 @@ def inner_raising_func(): | ||||||
|             e.__context__ = None |             e.__context__ = None | ||||||
|             obj = None |             obj = None | ||||||
|             obj = wr() |             obj = wr() | ||||||
|  |             gc_collect() | ||||||
|             self.assertTrue(obj is None, "%s" % obj) |             self.assertTrue(obj is None, "%s" % obj) | ||||||
| 
 | 
 | ||||||
|         # Some complicated construct |         # Some complicated construct | ||||||
|  | @ -567,6 +568,7 @@ def inner_raising_func(): | ||||||
|             except MyException: |             except MyException: | ||||||
|                 pass |                 pass | ||||||
|         obj = None |         obj = None | ||||||
|  |         gc_collect() | ||||||
|         obj = wr() |         obj = wr() | ||||||
|         self.assertTrue(obj is None, "%s" % obj) |         self.assertTrue(obj is None, "%s" % obj) | ||||||
| 
 | 
 | ||||||
|  | @ -581,6 +583,7 @@ def __exit__ (self, exc_type, exc_value, exc_tb): | ||||||
|         with Context(): |         with Context(): | ||||||
|             inner_raising_func() |             inner_raising_func() | ||||||
|         obj = None |         obj = None | ||||||
|  |         gc_collect() | ||||||
|         obj = wr() |         obj = wr() | ||||||
|         self.assertTrue(obj is None, "%s" % obj) |         self.assertTrue(obj is None, "%s" % obj) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Philip Jenvey
						Philip Jenvey