Blame SOURCES/00240-increase-smtplib-tests-timeouts.patch

925e6b
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py
925e6b
index 14d0060d8ec..1bb66901880 100644
925e6b
--- a/Lib/test/test_smtplib.py
925e6b
+++ b/Lib/test/test_smtplib.py
925e6b
@@ -179,31 +179,31 @@ def tearDown(self):
925e6b
 
925e6b
     def testBasic(self):
925e6b
         # connect
925e6b
-        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
925e6b
+        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
925e6b
         smtp.quit()
925e6b
 
925e6b
     def testNOOP(self):
925e6b
-        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
925e6b
+        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
925e6b
         expected = (250, 'Ok')
925e6b
         self.assertEqual(smtp.noop(), expected)
925e6b
         smtp.quit()
925e6b
 
925e6b
     def testRSET(self):
925e6b
-        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
925e6b
+        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
925e6b
         expected = (250, 'Ok')
925e6b
         self.assertEqual(smtp.rset(), expected)
925e6b
         smtp.quit()
925e6b
 
925e6b
     def testNotImplemented(self):
925e6b
         # EHLO isn't implemented in DebuggingServer
925e6b
-        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
925e6b
+        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
925e6b
         expected = (502, 'Error: command "EHLO" not implemented')
925e6b
         self.assertEqual(smtp.ehlo(), expected)
925e6b
         smtp.quit()
925e6b
 
925e6b
     def testVRFY(self):
925e6b
         # VRFY isn't implemented in DebuggingServer
925e6b
-        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
925e6b
+        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
925e6b
         expected = (502, 'Error: command "VRFY" not implemented')
925e6b
         self.assertEqual(smtp.vrfy('nobody@nowhere.com'), expected)
925e6b
         self.assertEqual(smtp.verify('nobody@nowhere.com'), expected)
925e6b
@@ -212,21 +212,21 @@ def testVRFY(self):
925e6b
     def testSecondHELO(self):
925e6b
         # check that a second HELO returns a message that it's a duplicate
925e6b
         # (this behavior is specific to smtpd.SMTPChannel)
925e6b
-        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
925e6b
+        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
925e6b
         smtp.helo()
925e6b
         expected = (503, 'Duplicate HELO/EHLO')
925e6b
         self.assertEqual(smtp.helo(), expected)
925e6b
         smtp.quit()
925e6b
 
925e6b
     def testHELP(self):
925e6b
-        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
925e6b
+        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
925e6b
         self.assertEqual(smtp.help(), 'Error: command "HELP" not implemented')
925e6b
         smtp.quit()
925e6b
 
925e6b
     def testSend(self):
925e6b
         # connect and send mail
925e6b
         m = 'A test message'
925e6b
-        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
925e6b
+        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=15)
925e6b
         smtp.sendmail('John', 'Sally', m)
925e6b
         # XXX(nnorwitz): this test is flaky and dies with a bad file descriptor
925e6b
         # in asyncore.  This sleep might help, but should really be fixed