• Victor Stinner's avatar
    [3.6] bpo-31250: test_asyncio: fix dangling threads (#3517) · 5013a5eb
    Victor Stinner yazdı
    * bpo-31250, test_asyncio: fix dangling threads (#3252)
    
    * Explicitly call shutdown(wait=True) on executors to wait until all
      threads complete to prevent side effects between tests.
    * Fix test_loop_self_reading_exception(): don't mock loop.close().
      Previously, the original close() method was called rather than the
      mock, because how set_event_loop() registered loop.close().
    
    (cherry picked from commit 16432bea)
    
    * bpo-31250, test_asyncio: fix EventLoopTestsMixin.tearDown() (#3264)
    
    Call doCleanups() to close the loop after calling
    executor.shutdown(wait=True): see TestCase.set_event_loop() of
    asyncio.test_utils.
    
    Replace also gc.collect() with support.gc_collect().
    
    (cherry picked from commit e8a533fb)
    5013a5eb
Adı
Son kayıt (commit)
Son güncelleme
..
__init__.py Loading commit data...
__main__.py Loading commit data...
echo.py Loading commit data...
echo2.py Loading commit data...
echo3.py Loading commit data...
keycert3.pem Loading commit data...
pycacert.pem Loading commit data...
ssl_cert.pem Loading commit data...
ssl_key.pem Loading commit data...
test_base_events.py Loading commit data...
test_events.py Loading commit data...
test_futures.py Loading commit data...
test_locks.py Loading commit data...
test_pep492.py Loading commit data...
test_proactor_events.py Loading commit data...
test_queues.py Loading commit data...
test_selector_events.py Loading commit data...
test_sslproto.py Loading commit data...
test_streams.py Loading commit data...
test_subprocess.py Loading commit data...
test_tasks.py Loading commit data...
test_transports.py Loading commit data...
test_unix_events.py Loading commit data...
test_windows_events.py Loading commit data...
test_windows_utils.py Loading commit data...