diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 1fe8c417309..c61a2c8221b 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -65,7 +65,7 @@ for optional in ("AF_UNIX", ): missing_ok(optional) -socktype = socket.socket_type +socktype = socket.SocketType hostname = socket.gethostname() ip = socket.gethostbyname(hostname) hname, aliases, ipaddrs = socket.gethostbyaddr(ip)