From: Richard Jones Date: Mon, 16 Aug 2010 01:48:14 +0000 (+0000) Subject: close down sockets held by asyncore at end of test; closes issue9619 X-Git-Tag: v3.2a2~286 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=daf235032fc3e0cfbfc279d60c1d12aff8f9b0d2;p=thirdparty%2FPython%2Fcpython.git close down sockets held by asyncore at end of test; closes issue9619 --- diff --git a/Lib/test/test_smtpd.py b/Lib/test/test_smtpd.py index 9d168c7604c2..3d55bb28a19a 100644 --- a/Lib/test/test_smtpd.py +++ b/Lib/test/test_smtpd.py @@ -45,6 +45,7 @@ class SMTPDServerTest(TestCase): self.assertRaises(NotImplementedError, write_line, b'spam\r\n.\r\n') def tearDown(self): + asyncore.close_all() asyncore.socket = smtpd.socket = socket @@ -57,6 +58,7 @@ class SMTPDChannelTest(TestCase): self.channel = smtpd.SMTPChannel(self.server, conn, addr) def tearDown(self): + asyncore.close_all() asyncore.socket = smtpd.socket = socket def write_line(self, line):