NealN very recently changed test_timeout so that it actually ran its tests (it didn't before, unless it was run directly "by hand"). The result here on Win98SE: test test_timeout failed -- Traceback (most recent call last): File "C:\CODE\PYTHON\lib\test\test_timeout.py", line 107, in testConnectTimeout self.addr_remote) File "C:\CODE\PYTHON\lib\unittest.py", line 285, in failUnlessRaises raise self.failureException, excName AssertionError: error 1 test failed: test_timeout Doing what the test does by hand doesn't raise an exception either: >>> import socket >>> sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >>> sock.settimeout(.001) >>> sock.connect(('www.google.com', 80)) >>> I suspect (but don't know) that Win98SE treats .001 as if it were some larger value. It would help if I could find an address that doesn't get connected instantly from here <0.7 wink>.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4