view src/testdir/test_channel_write.py @ 33126:7072c7b2c62e v9.0.1845

patch 9.0.1845: xxd: Test_xxd_color start failing Commit: https://github.com/vim/vim/commit/e0bfb7d3016ccd6c2186b9cd74cee6538eea9b5e Author: Christian Brabandt <cb@256bit.org> Date: Sat Sep 2 19:12:31 2023 +0200 patch 9.0.1845: xxd: Test_xxd_color start failing Problem: xxd: Test_xxd_color start failing Solution: Revert changes to dump file Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 02 Sep 2023 19:15:03 +0200
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