[Checkins] SVN: z3c.coverage/trunk/src/z3c/coverage/coveragediff.txt Explain the reason for the assignment of None, and make it global.

Marius Gedminas marius at pov.lt
Thu Jul 19 17:42:46 EDT 2007


Log message for revision 78200:
  Explain the reason for the assignment of None, and make it global.
  
  

Changed:
  U   z3c.coverage/trunk/src/z3c/coverage/coveragediff.txt

-=-
Modified: z3c.coverage/trunk/src/z3c/coverage/coveragediff.txt
===================================================================
--- z3c.coverage/trunk/src/z3c/coverage/coveragediff.txt	2007-07-19 21:29:49 UTC (rev 78199)
+++ z3c.coverage/trunk/src/z3c/coverage/coveragediff.txt	2007-07-19 21:42:45 UTC (rev 78200)
@@ -134,9 +134,12 @@
     >>> mailer = MailSender('smtp.example.com', 25)
 
 Since it wouldn't be a good idea to actually send emails from the test suite,
-we'll use a stub SMTP connection class.
+we'll use a stub SMTP connection class.  Also, let's hide the real one as
+an insurance, so that even if our stub fails, the rest of the tests won't
+send any real emails:
 
-    >>> mailer.connection_class = None
+    >>> MailSender.connection_class = None
+
     >>> class FakeSMTP(object):
     ...     def __init__(self, host, port):
     ...         print "Connecting to %s:%s" % (host, port)



More information about the Checkins mailing list