ironpython3
ironpython3 copied to clipboard
test_timeout fails on Mono
There appears to be two failures (only tested on Linux but I assume the issues are the same on macOS)
- The timeout values (in
Socket.SendTimeout) only being stored in tens of milliseconds:
>>> import _socket
>>> s = _socket.socket()
>>> s.settimeout(1.234)
>>> s.gettimeout()
1.24
- When certain operations timeout (e.g.
recv), theSocketException.SocketErrorCodeisSocketError.WouldBlockinstead ofSocketError.TimedOutso we end up with anOSErrorinstead of asocket.timeout. See https://github.com/mono/mono/issues/20381