[Python-checkins] r84088 - python/branches/py3k/Lib/test/test_smtpd.py
richard.jones
python-checkins at python.org
Mon Aug 16 03:48:14 CEST 2010
Author: richard.jones
Date: Mon Aug 16 03:48:14 2010
New Revision: 84088
Log:
close down sockets held by asyncore at end of test; closes issue9619
Modified:
python/branches/py3k/Lib/test/test_smtpd.py
Modified: python/branches/py3k/Lib/test/test_smtpd.py
==============================================================================
--- python/branches/py3k/Lib/test/test_smtpd.py (original)
+++ python/branches/py3k/Lib/test/test_smtpd.py Mon Aug 16 03:48:14 2010
@@ -45,6 +45,7 @@
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 @@
self.channel = smtpd.SMTPChannel(self.server, conn, addr)
def tearDown(self):
+ asyncore.close_all()
asyncore.socket = smtpd.socket = socket
def write_line(self, line):
More information about the Python-checkins
mailing list