]> granicus.if.org Git - python/commit
bpo-30106: Fix tearDown() of test_asyncore (#1194)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 20 Apr 2017 00:55:39 +0000 (02:55 +0200)
committerGitHub <noreply@github.com>
Thu, 20 Apr 2017 00:55:39 +0000 (02:55 +0200)
commit11470b6dcdbc170779499a4a040b93c842a0d194
tree3cf30479da144f5baf58054391c74b5296eb6492
parentd13d54748d3a7db023d9db37223ea7d40bb8f8e3
bpo-30106: Fix tearDown() of test_asyncore (#1194)

Call asyncore.close_all() with ignore_all=True in the tearDown()
method of the test_asyncore base test case. It should prevent keeping
alive sockets in asyncore.socket_map if close() fails with an
unexpected error.

Revert also an unwanted change of my previous commit: remove name
parameter of Thread in test_quick_connect().
Lib/test/test_asyncore.py