diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index c897c0a56ae614c..263fdafbad86d78 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -1300,7 +1300,8 @@ def testGetServBy(self): # protocol, at least for modern Linuxes. if ( sys.platform.startswith( - ('linux', 'android', 'freebsd', 'netbsd', 'gnukfreebsd')) + ('linux', 'android', 'freebsd', 'dragonfly', 'netbsd', + 'gnukfreebsd')) or is_apple ): # avoid the 'echo' service on this platform, as there is an