adds handle_error(self):raise to test modules using asyncore to provide a clearer error message in case something goes wrong
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py
index b74fa40..42a10be 100644
--- a/Lib/test/test_smtplib.py
+++ b/Lib/test/test_smtplib.py
@@ -366,6 +366,9 @@
else:
self.push('550 No access for you!')
+ def handle_error(self):
+ raise
+
class SimSMTPServer(smtpd.SMTPServer):
@@ -384,6 +387,9 @@
def add_feature(self, feature):
self._extra_features.append(feature)
+ def handle_error(self):
+ raise
+
# Test various SMTP & ESMTP commands/behaviors that require a simulated server
# (i.e., something with more features than DebuggingServer)