]> granicus.if.org Git - python/commit
Try to make this test a little more robust and not fail with:
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 23 Mar 2008 03:43:33 +0000 (03:43 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 23 Mar 2008 03:43:33 +0000 (03:43 +0000)
commit1f2995b014f609c01f42aaa1409c5c7757b9641c
tree7d178ddd759cb4087f879f2940c056e551185e52
parente70bb8d6f25b5e9aa0b3221943e302392023d164
Try to make this test a little more robust and not fail with:
  timeout (10.0025) is more than 2 seconds more than expected (0.001)

I'm assuming this problem is caused by DNS lookup.  This change
does a DNS lookup of the hostname before trying to connect, so the time
is not included.
Lib/test/test_timeout.py