MCPcopy Index your code
hub / github.com/RustPython/RustPython / testInitNonBlocking

Method testInitNonBlocking

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

Source from the content-addressed store, hash-verified

5355 'test needs socket.SOCK_NONBLOCK')
5356 @support.requires_linux_version(2, 6, 28)
5357 def testInitNonBlocking(self):
5358 # create a socket with SOCK_NONBLOCK
5359 self.serv.close()
5360 self.serv = socket.socket(socket.AF_INET,
5361 socket.SOCK_STREAM | socket.SOCK_NONBLOCK)
5362 self.assert_sock_timeout(self.serv, 0)
5363
5364 def _testInitNonBlocking(self):
5365 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