view src/testdir/test_channel_write.py @ 32403:1b0ade08ec91 v9.0.1533

patch 9.0.1533: test for 'smoothscroll' is ineffective Commit: https://github.com/vim/vim/commit/6f37e530d3e2d58ff055723047bf91d91af2632c Author: Luuk van Baal <luukvbaal@gmail.com> Date: Tue May 9 21:23:54 2023 +0100 patch 9.0.1533: test for 'smoothscroll' is ineffective Problem: Test for 'smoothscroll' is ineffective. Solution: Change the order of testing "zb" and "zt". (Luuk van Baal, closes #12366)
author Bram Moolenaar <Bram@vim.org>
date Tue, 09 May 2023 22:30: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