From: Thomas Wouters Date: Sun, 16 Apr 2006 16:26:28 +0000 (+0000) Subject: Make test_timeout not fail on systems with no dots in their fqdn. X-Git-Tag: v2.5a2~191 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb284197f2fd44ff9978b8bc6f9120b02d81531f;p=thirdparty%2FPython%2Fcpython.git Make test_timeout not fail on systems with no dots in their fqdn. --- diff --git a/Lib/test/test_timeout.py b/Lib/test/test_timeout.py index 262007cf0e75..4309e8c77946 100644 --- a/Lib/test/test_timeout.py +++ b/Lib/test/test_timeout.py @@ -114,7 +114,7 @@ class TimeoutTestCase(unittest.TestCase): # If we are too close to www.python.org, this test will fail. # Pick a host that should be farther away. 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) _t1 = time.time()