patch 8.1.0119: failing test goes unnoticed because messages is not written
Problem: Failing test goes unnoticed because testdir/messages is not
written.
Solution: Set 'nomodifiable' only local to the buffer.
diff --git a/src/testdir/test_put.vim b/src/testdir/test_put.vim
index e425c44..61b7429 100644
--- a/src/testdir/test_put.vim
+++ b/src/testdir/test_put.vim
@@ -62,7 +62,7 @@
func Test_put_fails_when_nomodifiable()
new
- set nomodifiable
+ setlocal nomodifiable
normal! yy
call assert_fails(':put', 'E21')
@@ -85,7 +85,7 @@
" output duplicate error messages when invoked in a non-modifiable buffer.
func Test_put_p_errmsg_nodup()
new
- set nomodifiable
+ setlocal nomodifiable
normal! yy