Commit 6d23c44e authored by Georg Brandl's avatar Georg Brandl

Fix #9412: make list of messages an instance attribute instead of class attribute.

parent 8dcaa739
...@@ -42,7 +42,9 @@ class DummySocket: ...@@ -42,7 +42,9 @@ class DummySocket:
pass pass
class DummyServer(smtpd.SMTPServer): class DummyServer(smtpd.SMTPServer):
messages = [] def __init__(self, *args):
smtpd.SMTPServer.__init__(self, *args)
self.messages = []
def create_socket(self, family, type): def create_socket(self, family, type):
self.family_and_type = (socket.AF_INET, socket.SOCK_STREAM) self.family_and_type = (socket.AF_INET, socket.SOCK_STREAM)
self.set_socket(DummySocket()) self.set_socket(DummySocket())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment