view src/testdir/test_channel_write.py @ 21395:9fba6d987d32 v8.2.1248

patch 8.2.1248: Netbeans test is flaky in the GUI Commit: https://github.com/vim/vim/commit/956501594e6c64f28a01fa649ad9016f3b25f05b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 19 18:24:32 2020 +0200 patch 8.2.1248: Netbeans test is flaky in the GUI Problem: Netbeans test is flaky in the GUI. Solution: Filter out geometry messages. (Taro Muraoka, closes https://github.com/vim/vim/issues/6487)
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Jul 2020 18:30: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