(self, n)
| 3971 | os.close(fd) |
| 3972 | |
| 3973 | def createAndSendFDs(self, n): |
| 3974 | # Send n new file descriptors created by newFDs() to the |
| 3975 | # server, with the constant MSG as the non-ancillary data. |
| 3976 | self.assertEqual( |
| 3977 | self.sendmsgToServer([MSG], |
| 3978 | [(socket.SOL_SOCKET, |
| 3979 | socket.SCM_RIGHTS, |
| 3980 | array.array("i", self.newFDs(n)))]), |
| 3981 | len(MSG)) |
| 3982 | |
| 3983 | def checkRecvmsgFDs(self, numfds, result, maxcmsgs=1, ignoreflags=0): |
| 3984 | # Check that constant MSG was received with numfds file |
no test coverage detected