def METHOD_NAME(self):
    test_pipe_r, test_pipe_w = os.pipe()
    try:
        # Get the default pipesize with F_GETPIPE_SZ
        pipesize_default = fcntl.fcntl(test_pipe_w, fcntl.F_GETPIPE_SZ)
        pipesize = pipesize_default // 2  # A new value to detect change.
        if pipesize < 512:  # the POSIX minimum
            raise unittest.SkitTest(
                'default pipesize too small to perform test.')
        fcntl.fcntl(test_pipe_w, fcntl.F_SETPIPE_SZ, pipesize)
        self.assertEqual(fcntl.fcntl(test_pipe_w, fcntl.F_GETPIPE_SZ),
                         pipesize)
    finally:
        os.close(test_pipe_r)
        os.close(test_pipe_w)