diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 6da423ac699..092e94f3803 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -4735,7 +4735,10 @@ class TestSocketSharing(SocketTCPTest): types = [socket.SOCK_STREAM, socket.SOCK_DGRAM] for f in families: for t in types: - source = socket.socket(f, t) + try: + source = socket.socket(f, t) + except OSError: + continue # This combination is not supported try: data = source.share(os.getpid()) shared = socket.fromshare(data)