]> granicus.if.org Git - python/commit
[3.6] bpo-31234: Fix dangling thread in test_ftp/poplib (#3554)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 13 Sep 2017 22:56:14 +0000 (15:56 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Sep 2017 22:56:14 +0000 (15:56 -0700)
commitef323e8d82b07d4e7e4303c360dc32d3de0b3147
treed0da0d030f990dfe05315d48e44a092d0b27747f
parentd99e85b9f6422dd5e4f2eb1539368fc4003d4c8b
[3.6] bpo-31234: Fix dangling thread in test_ftp/poplib (#3554)

* bpo-31234: Fix dangling thread in test_ftp/poplib (#3540)

Explicitly clear the server attribute in test_ftplib and test_poplib
to prevent dangling thread.

(cherry picked from commit d403a29c0055de6b03ed5ae7a5c564e1c95a5950)

* bpo-31234: Fix dangling thread in test_ftplib (#3544)

Clear also self.server_thread attribute in TestTimeouts.tearDown().

(cherry picked from commit b157ce1e58b03988ce4340a55d0b856125833cc5)
Lib/test/test_ftplib.py
Lib/test/test_poplib.py