view src/testdir/test_channel_write.py @ 32284:8a7a4c1f41e0 v9.0.1473

patch 9.0.1473: CI does not run sound tests Commit: https://github.com/vim/vim/commit/017227079f104bd69483ee3d33e31490d7e52135 Author: ichizok <gclient.gaap@gmail.com> Date: Fri Apr 21 17:46:57 2023 +0100 patch 9.0.1473: CI does not run sound tests Problem: CI does not run sound tests. Solution: Re-enable sound tests. Use "apt-get" instead of "apt". (Ozaki Kiichi, closes #12280)
author Bram Moolenaar <Bram@vim.org>
date Fri, 21 Apr 2023 19:00:04 +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