view src/testdir/test_channel_write.py @ 23571:b02ac00aacbf v8.2.2328

patch 8.2.2328: some test files may not be deleted Commit: https://github.com/vim/vim/commit/48e11c10548782f573411b6302f77adb69c40401 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 11 18:47:00 2021 +0100 patch 8.2.2328: some test files may not be deleted Problem: Some test files may not be deleted. Solution: Add a delete() call, correct name. (Dominique Pell?, closes https://github.com/vim/vim/issues/7654)
author Bram Moolenaar <Bram@vim.org>
date Mon, 11 Jan 2021 19:00:07 +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