[Python-checkins] r45455 - python/trunk/Lib/test/test_timeout.py
thomas.wouters
python-checkins at python.org
Sun Apr 16 18:26:29 CEST 2006
Author: thomas.wouters
Date: Sun Apr 16 18:26:28 2006
New Revision: 45455
Modified:
python/trunk/Lib/test/test_timeout.py
Log:
Make test_timeout not fail on systems with no dots in their fqdn.
Modified: python/trunk/Lib/test/test_timeout.py
==============================================================================
--- python/trunk/Lib/test/test_timeout.py (original)
+++ python/trunk/Lib/test/test_timeout.py Sun Apr 16 18:26:28 2006
@@ -114,7 +114,7 @@
# 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()
More information about the Python-checkins
mailing list