Mercurial > vim
view src/testdir/test_channel_write.py @ 27837:264cb6d2d0e9 v8.2.4444
patch 8.2.4444: beep caused by test
Commit: https://github.com/vim/vim/commit/68eab67119734ea1efc7cef1287276d969f2713a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 22 17:42:48 2022 +0000
patch 8.2.4444: beep caused by test
Problem: Beep caused by test. ASAN reports leaks.
Solution: Do not put a NL at the end of the script. Make the text work on
MS-Windows. Do not run the test with ASAN.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Feb 2022 18:45: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