• 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...
base_events.py Loading commit data...
base_futures.py Loading commit data...
base_subprocess.py Loading commit data...
base_tasks.py Loading commit data...
compat.py Loading commit data...
constants.py Loading commit data...
coroutines.py Loading commit data...
events.py Loading commit data...
futures.py Loading commit data...
locks.py Loading commit data...
log.py Loading commit data...
proactor_events.py Loading commit data...
protocols.py Loading commit data...
queues.py Loading commit data...
selector_events.py Loading commit data...
sslproto.py Loading commit data...
streams.py Loading commit data...
subprocess.py Loading commit data...
tasks.py Loading commit data...
test_utils.py Loading commit data...
transports.py Loading commit data...
unix_events.py Loading commit data...
windows_events.py Loading commit data...
windows_utils.py Loading commit data...