A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2010-July/095655.html below:

[Python-checkins] r83222 - python/branches/py3k/Lib/test/test_smtpd.py

[Python-checkins] r83222 - python/branches/py3k/Lib/test/test_smtpd.py [Python-checkins] r83222 - python/branches/py3k/Lib/test/test_smtpd.pygeorg.brandl python-checkins at python.org
Thu Jul 29 15:19:42 CEST 2010
Author: georg.brandl
Date: Thu Jul 29 15:19:42 2010
New Revision: 83222

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

Modified:
   python/branches/py3k/Lib/test/test_smtpd.py

Modified: python/branches/py3k/Lib/test/test_smtpd.py
==============================================================================
--- python/branches/py3k/Lib/test/test_smtpd.py	(original)
+++ python/branches/py3k/Lib/test/test_smtpd.py	Thu Jul 29 15:19:42 2010
@@ -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())
More information about the Python-checkins mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4