◐ Shell
clean mode source ↗

bpo-31234: Fix dangling thread in test_ftp/poplib by vstinner · Pull Request #3540 · python/cpython

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

This was referenced

Sep 13, 2017

vstinner added a commit that referenced this pull request

Sep 13, 2017
* 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 d403a29)

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

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

(cherry picked from commit b157ce1)