Fix #9412: make list of messages an instance attribute instead of class attribute.
diff --git a/Lib/test/test_smtpd.py b/Lib/test/test_smtpd.py
index 2d62239..538525b 100644
--- a/Lib/test/test_smtpd.py
+++ b/Lib/test/test_smtpd.py
@@ -42,7 +42,9 @@
         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())