view src/testdir/test_channel_write.py @ 23847:b0e7fa957cd1 v8.2.2465

patch 8.2.2465: using freed memory in :psearch Commit: https://github.com/vim/vim/commit/92bb83e41ca42d0d00d21753810d92485c808a50 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 3 23:04:46 2021 +0100 patch 8.2.2465: using freed memory in :psearch Problem: Using freed memory in :psearch. (houyunsong) Solution: Check the current window is still valid. Fix flaky test.
author Bram Moolenaar <Bram@vim.org>
date Wed, 03 Feb 2021 23:15:04 +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