Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
89de61a8
Commit
89de61a8
authored
Jul 25, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove test that was none too picky about whether attributes exist.
parent
bec6cc5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
41 deletions
+0
-41
Lib/test/test_socket.py
Lib/test/test_socket.py
+0
-41
No files found.
Lib/test/test_socket.py
View file @
89de61a8
...
...
@@ -216,47 +216,6 @@ class GeneralModuleTests(unittest.TestCase):
socket
.
SOL_SOCKET
socket
.
SO_REUSEADDR
def
testNonCrucialConstants
(
self
):
"""Testing for existance of non-crucial constants."""
for
const
in
(
"AF_UNIX"
,
"SO_DEBUG"
,
"SO_ACCEPTCONN"
,
"SO_REUSEADDR"
,
"SO_KEEPALIVE"
,
"SO_DONTROUTE"
,
"SO_BROADCAST"
,
"SO_USELOOPBACK"
,
"SO_LINGER"
,
"SO_OOBINLINE"
,
"SO_REUSEPORT"
,
"SO_SNDBUF"
,
"SO_RCVBUF"
,
"SO_SNDLOWAT"
,
"SO_RCVLOWAT"
,
"SO_SNDTIMEO"
,
"SO_RCVTIMEO"
,
"SO_ERROR"
,
"SO_TYPE"
,
"SOMAXCONN"
,
"MSG_OOB"
,
"MSG_PEEK"
,
"MSG_DONTROUTE"
,
"MSG_EOR"
,
"MSG_TRUNC"
,
"MSG_CTRUNC"
,
"MSG_WAITALL"
,
"MSG_BTAG"
,
"MSG_ETAG"
,
"SOL_SOCKET"
,
"IPPROTO_IP"
,
"IPPROTO_ICMP"
,
"IPPROTO_IGMP"
,
"IPPROTO_GGP"
,
"IPPROTO_TCP"
,
"IPPROTO_EGP"
,
"IPPROTO_PUP"
,
"IPPROTO_UDP"
,
"IPPROTO_IDP"
,
"IPPROTO_HELLO"
,
"IPPROTO_ND"
,
"IPPROTO_TP"
,
"IPPROTO_XTP"
,
"IPPROTO_EON"
,
"IPPROTO_BIP"
,
"IPPROTO_RAW"
,
"IPPROTO_MAX"
,
"IPPORT_RESERVED"
,
"IPPORT_USERRESERVED"
,
"INADDR_ANY"
,
"INADDR_BROADCAST"
,
"INADDR_LOOPBACK"
,
"INADDR_UNSPEC_GROUP"
,
"INADDR_ALLHOSTS_GROUP"
,
"INADDR_MAX_LOCAL_GROUP"
,
"INADDR_NONE"
,
"IP_OPTIONS"
,
"IP_HDRINCL"
,
"IP_TOS"
,
"IP_TTL"
,
"IP_RECVOPTS"
,
"IP_RECVRETOPTS"
,
"IP_RECVDSTADDR"
,
"IP_RETOPTS"
,
"IP_MULTICAST_IF"
,
"IP_MULTICAST_TTL"
,
"IP_MULTICAST_LOOP"
,
"IP_ADD_MEMBERSHIP"
,
"IP_DROP_MEMBERSHIP"
,
):
try
:
getattr
(
socket
,
const
)
except
AttributeError
:
pass
def
testHostnameRes
(
self
):
"""Testing hostname resolution mechanisms."""
hostname
=
socket
.
gethostname
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment