]> granicus.if.org Git - python/commit
bpo-34246: Make sure test_smtplib always cleans resources when finished (GH-9108)
authorPablo Galindo <Pablogsal@gmail.com>
Fri, 7 Sep 2018 23:15:22 +0000 (00:15 +0100)
committerGitHub <noreply@github.com>
Fri, 7 Sep 2018 23:15:22 +0000 (00:15 +0100)
commit5b7a2cb5caeb7df68e637f45a98632cbc84a51bf
tree4b1af3ee12abd1340279194d1c97af69bc776362
parentd5fbe9b1a3d65ceeb9159c5ba999ee966a945f76
bpo-34246: Make sure test_smtplib always cleans resources when finished (GH-9108)

* Make sure that when some of the tests in test_smtplib fail, the allocated threads
and sockets are not leaked.

* Use support.join_thread() instead of thread.join() to avoid infinite blocks.
Lib/test/test_smtplib.py