def test_syscallErrorWithControlMessage(self):
        probe = file(devnull)
        fd = probe.fileno()
        probe.close()
        exc = self.assertRaises(
            error, send1msg, fd, "hello, world", 0, [(0, 0, "0123")])
        self.assertEqual(exc.args[0], errno.EBADF)
The behavior when the underlying C{sendmsg} call fails is the same
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_sendmsg.py/SendmsgTestCase.test_syscallErrorWithControlMessage