getting windows py3 test_socketutils passing (socketpairs in windows py3 are quite a bit different than *nix)

This commit is contained in:
Mahmoud Hashemi 2016-05-22 17:20:10 -07:00
parent 01fb908d25
commit a29179e6f3
1 changed files with 2 additions and 1 deletions

View File

@ -139,6 +139,7 @@ def test_client_disconnecting():
except socket.error:
assert by.getsendbuffer() == b'123'
else:
if sys.platform != 'win32': # Windows socketpairs are kind of bad
assert False, 'expected socket.error broken pipe'
by.shutdown(socket.SHUT_RDWR)