WinError isn't a subclass of OSError <3.3
MODIFY
test/socketpair_helper.py
test/socketpair_helper.py
@@ -3,7 +3,7 @@ import socket
try:
_CONNECT_ERROR = (BlockingIOError, InterruptedError)
except:
- _CONNECT_ERROR = (OSError,)
+ _CONNECT_ERROR = (Exception,)
if hasattr(socket, 'socketpair'):
# Since Python 3.5, socket.socketpair() is now also available on Windows

WinError isn't a subclass of OSError <3.3