mirror of https://github.com/python/cpython
Make test_timeout not fail on systems with no dots in their fqdn.
This commit is contained in:
parent
767833dc22
commit
cb284197f2
|
@ -114,7 +114,7 @@ class TimeoutTestCase(unittest.TestCase):
|
||||||
# If we are too close to www.python.org, this test will fail.
|
# If we are too close to www.python.org, this test will fail.
|
||||||
# Pick a host that should be farther away.
|
# Pick a host that should be farther away.
|
||||||
if (socket.getfqdn().split('.')[-2:] == ['python', 'org'] or
|
if (socket.getfqdn().split('.')[-2:] == ['python', 'org'] or
|
||||||
socket.getfqdn().split('.')[-2] == 'xs4all'):
|
socket.getfqdn().split('.')[-2:-1] == ['xs4all']):
|
||||||
self.addr_remote = ('tut.fi', 80)
|
self.addr_remote = ('tut.fi', 80)
|
||||||
|
|
||||||
_t1 = time.time()
|
_t1 = time.time()
|
||||||
|
|
Loading…
Reference in New Issue