mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix #9412: make list of messages an instance attribute instead of class attribute.
This commit is contained in:
parent
8dcaa7396f
commit
6d23c44ee5
1 changed files with 3 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue