view src/testdir/test_channel_write.py @ 11858:042e634bb8d9 v8.0.0809

patch 8.0.0809: MS-Windows: tests hang commit https://github.com/vim/vim/commit/30fe88677dd2b16e733ca0ac14edc8d70c7259fc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 29 23:01:57 2017 +0200 patch 8.0.0809: MS-Windows: tests hang Problem: MS-Windows: tests hang. Solution: Delete the XfakeHOME directory.
author Christian Brabandt <cb@256bit.org>
date Sat, 29 Jul 2017 23:15:04 +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