view src/testdir/test_short_sleep.py @ 12062:191ccece2f5d v8.0.0911

patch 8.0.0911: terminal test takes too long commit https://github.com/vim/vim/commit/b81bc77ae7e43b5aac43970aaa4aa70c619e5009 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 11 22:45:01 2017 +0200 patch 8.0.0911: terminal test takes too long Problem: Terminal test takes too long. Solution: Instead of "sleep 1" use a Python program to briefly sleep.
author Christian Brabandt <cb@256bit.org>
date Fri, 11 Aug 2017 23:00:05 +0200
parents
children
line wrap: on
line source

#!/usr/bin/python
#
# Program that sleeps for 100 msec
#
# This requires Python 2.6 or later.

import time

if __name__ == "__main__":

    time.sleep(0.1)  # sleep 100 msec