diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-01 13:12:43 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-01 13:13:29 -0500 |
commit | a11c3b7920cbfef7e609f34d54093da2195c2a08 (patch) | |
tree | c1a0295899e73d1a05840fb1904b37ed21a4e126 | |
parent | abaabd1d03fd723630f6addeadee9928faa4cdde (diff) | |
download | rneovim-a11c3b7920cbfef7e609f34d54093da2195c2a08.tar.gz rneovim-a11c3b7920cbfef7e609f34d54093da2195c2a08.tar.bz2 rneovim-a11c3b7920cbfef7e609f34d54093da2195c2a08.zip |
vim-patch:8.2.0075: Python 3 unicode test still sometimes fails
Problem: Python 3 unicode test still sometimes fails.
Solution: Skip the test when 'termencoding' is not empty.
https://github.com/vim/vim/commit/2466aea508f22d44099d54ed6d15c0a1d90f8d6e
-rw-r--r-- | src/nvim/testdir/test_python3.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_python3.vim b/src/nvim/testdir/test_python3.vim index 9ffca12706..259ba1350a 100644 --- a/src/nvim/testdir/test_python3.vim +++ b/src/nvim/testdir/test_python3.vim @@ -176,8 +176,9 @@ endfunc func Test_unicode() throw 'skipped: Nvim does not support "termencoding" option and only supports "utf-8" for "encoding" option' " this crashed Vim once - let save_tenc = &tenc - set tenc= + if &tenc != '' + throw "Skipped: 'termencoding' is not empty" + endif set encoding=utf32 py3 print('hello') @@ -189,5 +190,4 @@ func Test_unicode() py3 print('hello') set encoding=utf8 - let &tenc = save_tenc endfunc |