Commit daf23503 authored by Richard Jones's avatar Richard Jones

close down sockets held by asyncore at end of test; closes issue9619

parent b14ac8c2
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment