Staging
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
History
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)
Tip revision: 5013a5e
File Mode Size
clinic
stringlib
README -rw-r--r-- 41 bytes
abstract.c -rw-r--r-- 80.9 KB
accu.c -rw-r--r-- 2.4 KB
boolobject.c -rw-r--r-- 6.5 KB
bytearrayobject.c -rw-r--r-- 68.7 KB
bytes_methods.c -rw-r--r-- 21.0 KB
bytesobject.c -rw-r--r-- 99.6 KB
capsule.c -rw-r--r-- 7.2 KB
cellobject.c -rw-r--r-- 4.8 KB
classobject.c -rw-r--r-- 18.2 KB
codeobject.c -rw-r--r-- 27.4 KB
complexobject.c -rw-r--r-- 31.7 KB
descrobject.c -rw-r--r-- 53.7 KB
dict-common.h -rw-r--r-- 2.3 KB
dictnotes.txt -rw-r--r-- 6.0 KB
dictobject.c -rw-r--r-- 131.7 KB
enumobject.c -rw-r--r-- 13.0 KB
exceptions.c -rw-r--r-- 87.0 KB
fileobject.c -rw-r--r-- 15.2 KB
floatobject.c -rw-r--r-- 70.7 KB
frameobject.c -rw-r--r-- 32.2 KB
funcobject.c -rw-r--r-- 30.1 KB
genobject.c -rw-r--r-- 67.8 KB
iterobject.c -rw-r--r-- 8.9 KB
listobject.c -rw-r--r-- 86.2 KB
listsort.txt -rw-r--r-- 34.9 KB
lnotab_notes.txt -rw-r--r-- 5.7 KB
longobject.c -rw-r--r-- 167.1 KB
memoryobject.c -rw-r--r-- 88.6 KB
methodobject.c -rw-r--r-- 15.5 KB
moduleobject.c -rw-r--r-- 22.0 KB
namespaceobject.c -rw-r--r-- 7.3 KB
object.c -rw-r--r-- 56.6 KB
obmalloc.c -rw-r--r-- 79.4 KB
odictobject.c -rw-r--r-- 76.7 KB
rangeobject.c -rw-r--r-- 37.1 KB
setobject.c -rw-r--r-- 73.0 KB
sliceobject.c -rw-r--r-- 19.2 KB
structseq.c -rw-r--r-- 12.9 KB
tupleobject.c -rw-r--r-- 30.0 KB
typeobject.c -rw-r--r-- 232.5 KB
typeslots.inc -rw-r--r-- 3.9 KB
typeslots.py -rwxr-xr-x 1.2 KB
unicodectype.c -rw-r--r-- 7.5 KB
unicodeobject.c -rw-r--r-- 454.3 KB
unicodetype_db.h -rw-r--r-- 234.1 KB
weakrefobject.c -rw-r--r-- 29.5 KB

README

back to top