diff options
Diffstat (limited to 'Lib/test/test_imaplib.py')
-rw-r--r-- | Lib/test/test_imaplib.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_imaplib.py b/Lib/test/test_imaplib.py index 132c58624f..2b62b05a59 100644 --- a/Lib/test/test_imaplib.py +++ b/Lib/test/test_imaplib.py @@ -220,7 +220,9 @@ class NewIMAPTestsMixin(): # cleanup the server self.server.shutdown() self.server.server_close() - self.thread.join(3.0) + support.join_thread(self.thread, 3.0) + # Explicitly clear the attribute to prevent dangling thread + self.thread = None def test_EOF_without_complete_welcome_message(self): # http://bugs.python.org/issue5949 |