[issue13453] Tests and network timeouts
Charles-François Natali
report at bugs.python.org
Sat Dec 10 14:53:16 CET 2011
Charles-François Natali <neologix at free.fr> added the comment:
And I assume that the test_telnetlib failure on the OpenIndiana
buildbot is due to a broken name resolution service, as in issue
#11812.
Here's a patch bumping the timeout to 60s, which should be enough to
resolve "localhost"...
----------
Added file: http://bugs.python.org/file23899/test_telnetlib_broken_nss.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13453>
_______________________________________
-------------- next part --------------
diff --git a/Lib/test/test_telnetlib.py b/Lib/test/test_telnetlib.py
--- a/Lib/test/test_telnetlib.py
+++ b/Lib/test/test_telnetlib.py
@@ -95,7 +95,7 @@
self.evt = threading.Event()
self.dataq = Queue.Queue()
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- self.sock.settimeout(3)
+ self.sock.settimeout(60) # Safety net. Look issue 11812
self.port = test_support.bind_port(self.sock)
self.thread = threading.Thread(target=server, args=(self.evt,self.sock, self.dataq))
self.thread.start()
More information about the Python-bugs-list
mailing list