view src/testdir/test_channel_write.py @ 18592:75c466dcf61c v8.1.2290

patch 8.1.2290: autocommand test fails Commit: https://github.com/vim/vim/commit/a9aa86ff951b7908b615a61a0e216901b96bc0eb Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 10 21:25:45 2019 +0100 patch 8.1.2290: autocommand test fails Problem: Autocommand test fails. Solution: Remove 'closeoff' from 'diffopt'.
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 Nov 2019 21:30:03 +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