From: Gregory P. Smith Date: Sun, 17 Oct 2010 00:17:24 +0000 (+0000) Subject: fix for netbsd. X-Git-Tag: v3.2a4~515 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b603d03f156888671f1fb492e7edd22d1560c21f;p=thirdparty%2FPython%2Fcpython.git fix for netbsd. --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index aadfdfaf206a..511e59066028 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')