(self, n)
| 4074 | os.close(fd) |
| 4075 | |
| 4076 | def createAndSendFDs(self, n): |
| 4077 | # Send n new file descriptors created by newFDs() to the |
| 4078 | # server, with the constant MSG as the non-ancillary data. |
| 4079 | self.assertEqual( |
| 4080 | self.sendmsgToServer([MSG], |
| 4081 | [(socket.SOL_SOCKET, |
| 4082 | socket.SCM_RIGHTS, |
| 4083 | array.array("i", self.newFDs(n)))]), |
| 4084 | len(MSG)) |
| 4085 | |
| 4086 | def checkRecvmsgFDs(self, numfds, result, maxcmsgs=1, ignoreflags=0): |
| 4087 | # Check that constant MSG was received with numfds file |
no test coverage detected