• Victor Stinner's avatar
    [3.7] bpo-33789: Backport test_asyncio fixes from master (GH-7478) · 3c417610
    Victor Stinner yazdı
    * bpo-33789: test_asyncio: Fix ResourceWarning (GH-7460)
    
    * Close sockets and streams to fix ResourceWarning warnings
    * Catch also OSError to hide a traceback on an expected handshake
      error
    
    (cherry picked from commit 0eba7c39)
    
    * bpo-33789, test_asyncio: Hide PendingDeprecationWarning (GH-7461)
    
    Hide PendingDeprecationWarning in test__register_task_3().
    
    (cherry picked from commit 7ed61e94)
    
    * bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462)
    
    Fix "<CoroWrapper ...> was never yielded from" warning in
    PyTask_PyFuture_Tests.test_error_in_call_soon() of
    test_asyncio.test_tasks.
    
    Close manually the coroutine on error.
    
    (cherry picked from commit 9f04f0df)
    3c417610
functional.py 7.61 KB