Mercurial > vim
view src/testdir/test_channel_write.py @ 19667:a088571e1d9d v8.2.0390
patch 8.2.0390: terminal postponed scrollback test is flaky
Commit: https://github.com/vim/vim/commit/ddbfe238a50dc846f2f722e9d870fc0dff5a2764
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 15 20:33:40 2020 +0100
patch 8.2.0390: terminal postponed scrollback test is flaky
Problem: Terminal postponed scrollback test is flaky.
Solution: Add delay in between sending keys. Rename dump files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Mar 2020 20:45:04 +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