MCPcopy Index your code
hub / github.com/python/cpython / newSocket

Method newSocket

Lib/test/test_socket.py:816–817  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

814 """Base class for TCP-over-IPv4 tests."""
815
816 def newSocket(self):
817 return socket.socket(socket.AF_INET, socket.SOCK_STREAM)
818
819class UDPTestBase(InetTestBase):
820 """Base class for UDP-over-IPv4 tests."""

Callers 3

setUpMethod · 0.45
newClientSocketMethod · 0.45
setUpMethod · 0.45

Calls 1

socketMethod · 0.80

Tested by

no test coverage detected