Kaydet (Commit) 52a11f1f authored tarafından Kristján Valur Jónsson's avatar Kristján Valur Jónsson

Issue #14310: Catch testing errors when trying to create unsupported socket

types on some platforms.
üst 8798ad3e
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment