mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
close down sockets held by asyncore at end of test; closes issue9619
This commit is contained in:
parent
b14ac8c2b0
commit
daf235032f
1 changed files with 2 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue