view src/testdir/test_channel_write.py @ 18346:5b12fd0c39c3 v8.1.2167

patch 8.1.2167: mapping test fails on MS-Windows Commit: https://github.com/vim/vim/commit/2559a47823a6a7827631f2e6a0176d7afce2721c Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 16 23:33:12 2019 +0200 patch 8.1.2167: mapping test fails on MS-Windows Problem: Mapping test fails on MS-Windows. Solution: Remove all the existing Insert-mode mappings.
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Oct 2019 23:45: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