From 6d23c44ee513058ba272a0d6ad2066252684799c Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 29 Jul 2010 13:19:42 +0000 Subject: [PATCH] Fix #9412: make list of messages an instance attribute instead of class attribute. --- Lib/test/test_smtpd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_smtpd.py b/Lib/test/test_smtpd.py index 2d622392fcfe..538525b5a3d9 100644 --- a/Lib/test/test_smtpd.py +++ b/Lib/test/test_smtpd.py @@ -42,7 +42,9 @@ class DummySocket: pass class DummyServer(smtpd.SMTPServer): - messages = [] + def __init__(self, *args): + smtpd.SMTPServer.__init__(self, *args) + self.messages = [] def create_socket(self, family, type): self.family_and_type = (socket.AF_INET, socket.SOCK_STREAM) self.set_socket(DummySocket()) -- 2.47.3