view src/testdir/test_channel_write.py @ 19801:92c6105e9c8e v8.2.0457

patch 8.2.0457: Test_quotestar() often fails when run under valgrind Commit: https://github.com/vim/vim/commit/26bde6e2eb307898ab7ed42bf8e7e2ccde979e02 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 26 21:11:58 2020 +0100 patch 8.2.0457: Test_quotestar() often fails when run under valgrind Problem: Test_quotestar() often fails when run under valgrind. Solution: Wait longer for the GUI to start.
author Bram Moolenaar <Bram@vim.org>
date Thu, 26 Mar 2020 21:15:04 +0100
parents 5cd9ba96561d
children
line wrap: on
line source

#!/usr/bin/python
#
# Program that writes a number to stdout repeatedly
#
# This requires Python 2.6 or later.

from __future__ import print_function
import sys
import time

if __name__ == "__main__":

    done = 0
    while done < 10:
        done = done + 1
        print(done)
        sys.stdout.flush()
        time.sleep(0.05)  # sleep 50 msec