view src/testdir/test_channel_write.py @ 15928:857ce36c8412 v8.1.0970

patch 8.1.0970: text properties test fails when 'encoding' is not utf-8 commit https://github.com/vim/vim/commit/ed79d1e348c40e2432802423bf22e4f7b536bf8a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 22 14:38:58 2019 +0100 patch 8.1.0970: text properties test fails when 'encoding' is not utf-8 Problem: Text properties test fails when 'encoding' is not utf-8. Solution: Compare with original value of 'encoding'. (Christian Brabandt, closes #3986)
author Bram Moolenaar <Bram@vim.org>
date Fri, 22 Feb 2019 14:45:07 +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