view src/testdir/test_channel_write.py @ 20386:3b3589275ab9 v8.2.0748

patch 8.2.0748: cannot get a list of all popups Commit: https://github.com/vim/vim/commit/ef6b979bfae82f64781d8b0ce0194c57111243d4 Author: Bram Moolenaar <Bram@vim.org> Date: Wed May 13 16:34:15 2020 +0200 patch 8.2.0748: cannot get a list of all popups Problem: Cannot get a list of all popups. Solution: Add popup_list(). Use it in the test runner.
author Bram Moolenaar <Bram@vim.org>
date Wed, 13 May 2020 16:45:05 +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