A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-August/047062.html below:

[Python-Dev] OK to lower timeout for test_timeout's testConnectTimeout test?

[Python-Dev] OK to lower timeout for test_timeout's testConnectTimeout test? [Python-Dev] OK to lower timeout for test_timeout's testConnectTimeout test?Dmitry Vasiliev lists at hlabs.spb.ru
Fri Aug 6 13:42:39 CEST 2004
Brett Cannon wrote:
> I am actually getting failures from test_timeout's testConnectTimeout 
> since the Net connection I have at school lets me connect to Google in 
> under the .001 connection timeout value.  If I push it to .00000001 (a 
> hundred-millionth of a second) it then fails consistently.
> 
> Now the problem is that the second part of the test uses this and a fuzz 
> value (currently at 2) to see if the test timed out within the proper 
> amount of time.  The comparison is basically if the amount of time it 
> took to do the timed out failure is less than timeout + fuzz.  So 
> lowering this number could possibly affect the test, although at .001 
> seconds, I am doubting that will occur.  But since these types of timing 
> tests can be touchy I thought I would double-check.
> 
> So if anyone thinks it is bad to lower the value to .00000001 then 
> please let me know.  Otherwise I will lower the value before the next 
> alpha goes out.
> 
> -Brett
> 
> P.S.: the only other failures I have on OS X right now is test_curses 
> (because I used -uall) and test__locale .  Should we disable 
> test__locale on OS X to shut it up since Martin seems to think the test 
> isn't all that useful and won't work for OS X ever?

Some time ago I submit patch for test_timeout.py:

http://sourceforge.net/tracker/?group_id=5470&atid=305470&func=detail&aid=728815

In my patch testConnectTimeout try connect to www.google.com:21 which 
seems like black hole. :)

-- 
Dmitry Vasiliev (dima at hlabs.spb.ru)
     http://hlabs.spb.ru
More information about the Python-Dev mailing list

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