Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 5013a5ebc9978a58435036fa3860c465882c21da authored by Victor Stinner on 12 September 2017, 21:18:23 UTC, committed by GitHub on 12 September 2017, 21:18:23 UTC
* 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 16432beadb8eba079c9786cc0c0eaacfd9fd2f7b) * 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 e8a533fbc734af6eeb389202ba6c6e9c2548027f)
1 parent 4d7807a
Tip revision: 5013a5ebc9978a58435036fa3860c465882c21da authored by Victor Stinner on 12 September 2017, 21:18:23 UTC
[3.6] bpo-31250: test_asyncio: fix dangling threads (#3517)
[3.6] bpo-31250: test_asyncio: fix dangling threads (#3517)
Tip revision: 5013a5e
File | Mode | Size |
---|---|---|
package | ||
Arithmetic.py | -rw-r--r-- | 13.2 KB |
Calls.py | -rw-r--r-- | 9.0 KB |
CommandLine.py | -rw-r--r-- | 16.5 KB |
Constructs.py | -rw-r--r-- | 12.9 KB |
Dict.py | -rw-r--r-- | 9.0 KB |
Exceptions.py | -rw-r--r-- | 13.1 KB |
Imports.py | -rw-r--r-- | 2.9 KB |
Instances.py | -rw-r--r-- | 1.4 KB |
LICENSE | -rw-r--r-- | 1.1 KB |
Lists.py | -rw-r--r-- | 6.3 KB |
Lookups.py | -rw-r--r-- | 14.9 KB |
NewInstances.py | -rw-r--r-- | 1.5 KB |
Numbers.py | -rw-r--r-- | 15.8 KB |
README | -rw-r--r-- | 14.0 KB |
Setup.py | -rwxr-xr-x | 961 bytes |
Strings.py | -rw-r--r-- | 10.7 KB |
Tuples.py | -rw-r--r-- | 7.8 KB |
Unicode.py | -rw-r--r-- | 10.8 KB |
With.py | -rw-r--r-- | 4.0 KB |
clockres.py | -rwxr-xr-x | 1.2 KB |
pybench.py | -rwxr-xr-x | 31.9 KB |
systimes.py | -rwxr-xr-x | 6.5 KB |
Computing file changes ...