diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2010-10-17 00:17:24 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2010-10-17 00:17:24 (GMT) |
commit | b603d03f156888671f1fb492e7edd22d1560c21f (patch) | |
tree | 8b35995517f3490df3e9789c08ff969ecdef9b75 /Lib | |
parent | f6782ac0b69d1bfaa7f629357db757a021ddede1 (diff) | |
download | cpython-b603d03f156888671f1fb492e7edd22d1560c21f.zip cpython-b603d03f156888671f1fb492e7edd22d1560c21f.tar.gz cpython-b603d03f156888671f1fb492e7edd22d1560c21f.tar.bz2 |
fix for netbsd.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_socket.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index aadfdfa..511e590 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -362,8 +362,10 @@ class GeneralModuleTests(unittest.TestCase): # 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') |