mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Close #25367: Fix test_coroutines with no thread support
Skip test_asyncio_1() when the asyncio module cannot be imported because CPython is compiled with no thread support.
This commit is contained in:
		
							parent
							
								
									bc5b80bac1
								
							
						
					
					
						commit
						b45c0f7e48
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -1322,7 +1322,9 @@ async def foo(): | |||
| class CoroAsyncIOCompatTest(unittest.TestCase): | ||||
| 
 | ||||
|     def test_asyncio_1(self): | ||||
|         import asyncio | ||||
|         # asyncio cannot be imported when Python is compiled without thread | ||||
|         # support | ||||
|         support.import_module('asyncio') | ||||
| 
 | ||||
|         class MyException(Exception): | ||||
|             pass | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner