def testDisable(self):
     utils.SetCloseOnExecFlag(self.tmpfile.fileno(), False)
     self.failIf(
         fcntl.fcntl(self.tmpfile.fileno(), fcntl.F_GETFD)
         & fcntl.FD_CLOEXEC)
 def testEnable(self):
     utils.SetCloseOnExecFlag(self.tmpfile.fileno(), True)
     self.failUnless(
         fcntl.fcntl(self.tmpfile.fileno(), fcntl.F_GETFD)
         & fcntl.FD_CLOEXEC)