mirror of
				https://github.com/python/cpython.git
				synced 2025-10-25 18:54:53 +00:00 
			
		
		
		
	gh-102799: use sys.exception() instead of sys.exc_info() in tests (#103293)
This commit is contained in:
		
							parent
							
								
									a44568b80d
								
							
						
					
					
						commit
						482b6eeadc
					
				
					 12 changed files with 68 additions and 71 deletions
				
			
		|  | @ -606,7 +606,7 @@ def on_timeout(): | |||
|                     if ( | ||||
|                         timed_out | ||||
|                         and task.uncancel() == 0 | ||||
|                         and sys.exc_info()[0] is asyncio.CancelledError | ||||
|                         and type(sys.exception()) is asyncio.CancelledError | ||||
|                     ): | ||||
|                         # Note the five rules that are needed here to satisfy proper | ||||
|                         # uncancellation: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Irit Katriel
						Irit Katriel