Skip to content

Commit 2466aea

Browse files
committed
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.
1 parent 4b7cdca commit 2466aea

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/testdir/test_python3.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ endfunc
170170

171171
func Test_unicode()
172172
" this crashed Vim once
173-
let save_tenc = &tenc
174-
set tenc=
173+
if &tenc != ''
174+
throw "Skipped: 'termencoding' is not empty"
175+
endif
175176

176177
set encoding=utf32
177178
py3 print('hello')
@@ -183,5 +184,4 @@ func Test_unicode()
183184
py3 print('hello')
184185

185186
set encoding=utf8
186-
let &tenc = save_tenc
187187
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ static char *(features[]) =
742742

743743
static int included_patches[] =
744744
{ /* Add new patch number below this line */
745+
/**/
746+
75,
745747
/**/
746748
74,
747749
/**/

0 commit comments

Comments
 (0)