view src/testdir/test_short_sleep.py @ 20427:0ab8f8880a33 v8.2.0768

patch 8.2.0768: Vim9: memory leak in script test Commit: https://github.com/vim/vim/commit/e75ba268b35a9b3a1f8b47668e657259555fc5fa Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 16 15:43:31 2020 +0200 patch 8.2.0768: Vim9: memory leak in script test Problem: Vim9: memory leak in script test. Solution: Clear typval before giving an error message.
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 May 2020 15:45:03 +0200
parents 191ccece2f5d
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