]> granicus.if.org Git - python/commitdiff
Add test for presence of socket_type.
authorGuido van Rossum <guido@python.org>
Wed, 21 May 1997 14:38:57 +0000 (14:38 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 21 May 1997 14:38:57 +0000 (14:38 +0000)
Lib/test/test_socket.py

index 31b84f2c6c0ab0a407e059b3eacb927acdda4e99..1fe8c4173097af190ed02371ffc6e14faa68b32e 100644 (file)
@@ -65,6 +65,7 @@ for optional in ("AF_UNIX",
                 ):
     missing_ok(optional)
 
+socktype = socket.socket_type
 hostname = socket.gethostname()
 ip = socket.gethostbyname(hostname)
 hname, aliases, ipaddrs = socket.gethostbyaddr(ip)