py3 support errors

master
inpos 2017-12-18 09:06:38 +03:00
parent b9da8c1323
commit d218d92d2f
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class BasicTests(unittest.TestCase):
try: try:
ssl.sslwrap_simple(socket.socket(AF_INET4_6, ssl.sslwrap_simple(socket.socket(AF_INET4_6,
socket.SOCK_DGRAM)._sock) socket.SOCK_DGRAM)._sock)
except IOError, e: except IOError as e:
if e.errno == 32: # broken pipe when ssl_sock.do_handshake(), this test doesn't care about that if e.errno == 32: # broken pipe when ssl_sock.do_handshake(), this test doesn't care about that
pass pass
else: else: