diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-29 21:01:57 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-29 21:01:57 +0100 |
commit | 7dd5a78b88af7734bdbf236fdfafb49f27a0ca2e (patch) | |
tree | 4b4a6aabc97d0e33296c24b8b70b841f7a5c063b /src/testdir/test_lambda.vim | |
parent | ac38ec7c7f7cb0ab94397dc19bd72b0a84afdbe5 (diff) |
patch 9.0.0625: too many delete() calls in testsv9.0.0625
Problem: Too many delete() calls in tests.
Solution: Use deferred delete where possible.
Diffstat (limited to 'src/testdir/test_lambda.vim')
-rw-r--r-- | src/testdir/test_lambda.vim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/testdir/test_lambda.vim b/src/testdir/test_lambda.vim index 1a69a9bfa5..3e348a0a01 100644 --- a/src/testdir/test_lambda.vim +++ b/src/testdir/test_lambda.vim @@ -354,7 +354,7 @@ func Test_closure_error() return 1 endfunc END - call writefile(l, 'Xscript') + call writefile(l, 'Xscript', 'D') let caught_932 = 0 try source Xscript @@ -362,7 +362,6 @@ func Test_closure_error() let caught_932 = 1 endtry call assert_equal(1, caught_932) - call delete('Xscript') endfunc " vim: shiftwidth=2 sts=2 expandtab |