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.
2466aea508
This commit is contained in:
Jan Edmund Lazo
2020-01-01 13:12:43 -05:00
parent abaabd1d03
commit a11c3b7920

View File

@@ -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