The usual.
diff --git a/Lib/dos-8x3/test_soc.py b/Lib/dos-8x3/test_soc.py
index 1fe8c41..c61a2c8 100644
--- a/Lib/dos-8x3/test_soc.py
+++ b/Lib/dos-8x3/test_soc.py
@@ -65,7 +65,7 @@
 		 ):
     missing_ok(optional)
 
-socktype = socket.socket_type
+socktype = socket.SocketType
 hostname = socket.gethostname()
 ip = socket.gethostbyname(hostname)
 hname, aliases, ipaddrs = socket.gethostbyaddr(ip)