summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socket.py5
1 files changed, 4 insertions, 1 deletions
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 @@ 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)