summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-04-16 16:26:28 +0000
committerThomas Wouters <thomas@python.org>2006-04-16 16:26:28 +0000
commitcb284197f2fd44ff9978b8bc6f9120b02d81531f (patch)
tree5e6970f8a71d6963e18dbfab119d0671fbb7edde /Lib
parent767833dc228c9475cd52b99ee8e03793d31d7a81 (diff)
downloadcpython-git-cb284197f2fd44ff9978b8bc6f9120b02d81531f.tar.gz
Make test_timeout not fail on systems with no dots in their fqdn.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_timeout.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_timeout.py b/Lib/test/test_timeout.py
index 262007cf0e..4309e8c779 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()