Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_socket.py @ 65416:443ab2cbabcb
fix for netbsd.
| author | Gregory P. Smith <greg@mad-scientist.com> |
|---|---|
| date | Sun, 17 Oct 2010 00:17:24 +0000 |
| parents | 52025c3541d8 |
| children | 8d7f18332db7 |
line wrap: on
line diff
--- a/Lib/test/test_socket.py Sat Oct 16 23:46:43 2010 +0000 +++ b/Lib/test/test_socket.py Sun Oct 17 00:17:24 2010 +0000 @@ -362,8 +362,10 @@ # Find one service that exists, then check all the related interfaces. # I've ordered this by protocols that have both a tcp and udp # protocol, at least for modern Linuxes. - if sys.platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', - 'freebsd7', 'freebsd8', 'darwin'): + if (sys.platform.startswith('linux') or + sys.platform.startswith('freebsd') or + sys.platform.startswith('netbsd') or + sys.platform == 'darwin'): # avoid the 'echo' service on this platform, as there is an # assumption breaking non-standard port/protocol entry services = ('daytime', 'qotd', 'domain')
