]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0075: Python 3 unicode test still sometimes fails v8.2.0075
authorBram Moolenaar <Bram@vim.org>
Wed, 1 Jan 2020 16:09:11 +0000 (17:09 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 1 Jan 2020 16:09:11 +0000 (17:09 +0100)
Problem:    Python 3 unicode test still sometimes fails.
Solution:   Skip the test when 'termencoding' is not empty.

src/testdir/test_python3.vim
src/version.c

index cd5ac9cc09260b19591f67a5980b6299a8f0a45b..f722edca55e04f5e5d2e8be3f17c3a65fa4c60b5 100644 (file)
@@ -170,8 +170,9 @@ endfunc
 
 func Test_unicode()
   " 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')
@@ -183,5 +184,4 @@ func Test_unicode()
   py3 print('hello')
 
   set encoding=utf8
-  let &tenc = save_tenc
 endfunc
index 30f4465f6e243103b97f17595a24c18afb86c10b..16544f7ea9b9857d32b91dfe367458a9195cecac 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    75,
 /**/
     74,
 /**/