view src/testdir/test_channel_write.py @ 18656:022deb0adec9 v8.1.2320

patch 8.1.2320: insufficient test coverage for quickfix Commit: https://github.com/vim/vim/commit/f9ae154c512683ea7b933f870b0268232fd7ad38 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 18 22:02:16 2019 +0100 patch 8.1.2320: insufficient test coverage for quickfix Problem: Insufficient test coverage for quickfix. Solution: Add more tests. Fix uncovered problem. (Yegappan Lakshmanan, closes #5238)
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 Nov 2019 22:15: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