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

Method test_sock_ioctl

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

Source from the content-addressed store, hash-verified

1602
1603 @unittest.skipUnless(os.name == "nt", "Windows specific")
1604 def test_sock_ioctl(self):
1605 self.assertHasAttr(socket.socket, 'ioctl')
1606 self.assertHasAttr(socket, 'SIO_RCVALL')
1607 self.assertHasAttr(socket, 'RCVALL_ON')
1608 self.assertHasAttr(socket, 'RCVALL_OFF')
1609 self.assertHasAttr(socket, 'SIO_KEEPALIVE_VALS')
1610 s = socket.socket()
1611 self.addCleanup(s.close)
1612 self.assertRaises(ValueError, s.ioctl, -1, None)
1613 s.ioctl(socket.SIO_KEEPALIVE_VALS, (1, 100, 100))
1614
1615 @unittest.skipUnless(os.name == "nt", "Windows specific")
1616 @unittest.skipUnless(hasattr(socket, 'SIO_LOOPBACK_FAST_PATH'),

Callers

nothing calls this directly

Calls 5

socketMethod · 0.80
addCleanupMethod · 0.80
ioctlMethod · 0.80
assertHasAttrMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected