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

Method testInitNonBlocking

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

Source from the content-addressed store, hash-verified

5458 'test needs socket.SOCK_NONBLOCK')
5459 @support.requires_linux_version(2, 6, 28)
5460 def testInitNonBlocking(self):
5461 # create a socket with SOCK_NONBLOCK
5462 self.serv.close()
5463 self.serv = socket.socket(socket.AF_INET,
5464 socket.SOCK_STREAM | socket.SOCK_NONBLOCK)
5465 self.assert_sock_timeout(self.serv, 0)
5466
5467 def _testInitNonBlocking(self):
5468 pass

Callers

nothing calls this directly

Calls 3

assert_sock_timeoutMethod · 0.95
socketMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected