Issue #14310: Catch testing errors when trying to create unsupported socket
types on some platforms.
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 6da423a..092e94f 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -4735,7 +4735,10 @@
         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)