changeset 19029:8aa4ba1f9345 v8.2.0075

patch 8.2.0075: Python 3 unicode test still sometimes fails Commit: https://github.com/vim/vim/commit/2466aea508f22d44099d54ed6d15c0a1d90f8d6e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 1 17:09:11 2020 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 01 Jan 2020 17:15:03 +0100
parents a0744b998efa
children c413e5c05588
files src/testdir/test_python3.vim src/version.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_python3.vim
+++ b/src/testdir/test_python3.vim
@@ -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
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    75,
+/**/
     74,
 /**/
     73,