[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/SmtpService/tests - testSmtpService.py:1.2

Barry Warsaw barry@wooz.org
Mon, 28 Oct 2002 18:09:43 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/SmtpService/tests
In directory cvs.zope.org:/tmp/cvs-serv8110

Modified Files:
	testSmtpService.py 
Log Message:
Disable this test.  asyncore doesn't play nice.  Jim says:

    The new smtp server tests is causing the FTP tests to fail, probably
    because of some interaction through asyncore.

    You are using asyncore. I don't think asyncore is a good
    tool for writing unit tests. It uses a global socket map, which
    will likely not get cleaned up correctly.


=== Zope3/lib/python/Zope/App/OFS/Services/SmtpService/tests/testSmtpService.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/OFS/Services/SmtpService/tests/testSmtpService.py:1.1	Mon Oct 28 16:05:00 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/SmtpService/tests/testSmtpService.py	Mon Oct 28 18:09:43 2002
@@ -88,10 +88,10 @@
 This is a test message.""")
 
 
-def test_suite():
-    loader = unittest.TestLoader()
-    return loader.loadTestsFromTestCase(TestSmtpService)
+##def test_suite():
+##    loader = unittest.TestLoader()
+##    return loader.loadTestsFromTestCase(TestSmtpService)
 
 
-if __name__ == '__main__':
-    unittest.TextTestRunner().run(test_suite())
+##if __name__ == '__main__':
+##    unittest.TextTestRunner().run(test_suite())