]> granicus.if.org Git - python/commitdiff
Make the timeout longer to give slow machines a chance to pass the test
authorNeal Norwitz <nnorwitz@gmail.com>
Wed, 5 Mar 2008 05:38:06 +0000 (05:38 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Wed, 5 Mar 2008 05:38:06 +0000 (05:38 +0000)
before timing out.  This doesn't change the duration of the test under
normal circumstances.  This is targetted at fixing the spurious failures
on the FreeBSD buildbot primarily.

Lib/test/test_smtplib.py

index e45884607848174cbdc15ddc19f2087aaca59989..bc1ad8920b483ae5aac0a35c77caf2a2213cb846 100644 (file)
@@ -19,7 +19,7 @@ PORT = None
 
 def server(evt, buf):
     serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
-    serv.settimeout(1)
+    serv.settimeout(15)
     serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
     serv.bind(("", 0))
     global PORT