mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Add test for presence of socket_type.
This commit is contained in:
parent
3b4b6fc602
commit
f8580215c1
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue