Fixed test for socket.error to work when it's a class exception.
1 file changed