def METHOD_NAME(self):
    class F:
        def __init__(self, fd):
            self.fd = fd
        def fileno(self):
            return self.fd
    os.close(os.open(TEST_FILENAME_FULL_PATH, os.O_WRONLY | os.O_CREAT))
    with open(TEST_FILENAME_FULL_PATH, 'r') as f:
        stdout_fd = sys.__stdout__.fileno()
        # stdout is not ready for reading, but the file should be,
        # we should get back both objects and in the right order
        fds = [F(f.fileno()), F(stdout_fd), F(f.fileno())]
        res = select.select(fds, [], [], 1)
        assert res == ([fds[0], fds[2]], [], [])