Mercurial > vim
view src/testdir/test_channel_write.py @ 26646:6f8d3470fa90 v8.2.3852
patch 8.2.3852: Vim9: not enough tests
Commit: https://github.com/vim/vim/commit/f47c5a8e2d8eda7c2c8a9cccf9568eb56c03a0cf
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 19 15:17:21 2021 +0000
patch 8.2.3852: Vim9: not enough tests
Problem: Vim9: not enough tests.
Solution: Also run existing tests for Vim9 script. Make errors more
consistent.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 19 Dec 2021 16:30:03 +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