diff --git a/test87-python36.patch b/test87-python36.patch new file mode 100644 index 0000000..0500723 --- /dev/null +++ b/test87-python36.patch @@ -0,0 +1,38 @@ +commit 70c8d2d8c412ad5639db8a018c7385fd99d0373f +Author: Anatol Pomozov +Date: Sat Jan 7 09:26:22 2017 -0800 + + Fix error messages for Python 3.6 + + https://github.com/vim/vim/issues/1359 + https://bugs.archlinux.org/task/52401 + https://bbs.archlinux.org/viewtopic.php?id=221579 + +diff --git a/src/testdir/test87.ok b/src/testdir/test87.ok +index d90ef8625..b51788bde 100644 +--- a/src/testdir/test87.ok ++++ b/src/testdir/test87.ok +@@ -658,10 +658,10 @@ assert sys.stderr.closed()==False:NOT FAILED + assert sys.stdout.errors=="strict":NOT FAILED + assert sys.stderr.errors=="strict":NOT FAILED + assert sys.stdout.encoding==sys.stderr.encoding:NOT FAILED +-sys.stdout.write(None):(, TypeError("Can't convert 'NoneType' object to str implicitly",)) ++sys.stdout.write(None):(, TypeError('argument must be str, bytes or bytearray, not None',)) + >> OutputWriteLines + sys.stdout.writelines(None):(, TypeError("'NoneType' object is not iterable",)) +-sys.stdout.writelines([1]):(, TypeError("Can't convert 'int' object to str implicitly",)) ++sys.stdout.writelines([1]):(, TypeError('argument must be str, bytes or bytearray, not int',)) + >>> Testing *Iter* using sys.stdout.writelines(%s) + sys.stdout.writelines(FailingIter()):(, NotImplementedError('iter',)) + sys.stdout.writelines(FailingIterNext()):(, NotImplementedError('next',)) +@@ -700,8 +700,8 @@ vim.foreach_rtp(NoArgsCall()):(, TypeError('__call__() takes + vim.foreach_rtp(FailingCall()):(, NotImplementedError('call',)) + vim.foreach_rtp(int, 2):(, TypeError('foreach_rtp() takes exactly one argument (2 given)',)) + > import +-import xxx_no_such_module_xxx:(, ImportError('No module named xxx_no_such_module_xxx',)) +-import failing_import:(, ImportError('No module named failing_import',)) ++import xxx_no_such_module_xxx:(, ModuleNotFoundError("No module named 'xxx_no_such_module_xxx'",)) ++import failing_import:(, ModuleNotFoundError("No module named 'failing_import'",)) + import failing:(, NotImplementedError()) + > Options + >> OptionsItem diff --git a/vim.changes b/vim.changes index a67c2fb..4010120 100644 --- a/vim.changes +++ b/vim.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 16 14:00:34 UTC 2017 - idonmez@suse.com + +- Add test87-python36.patch to update test results for Python 3.6 + ------------------------------------------------------------------- Fri Feb 10 12:10:59 UTC 2017 - idonmez@suse.com diff --git a/vim.spec b/vim.spec index 83a8b06..40196d9 100644 --- a/vim.spec +++ b/vim.spec @@ -92,6 +92,7 @@ Patch15: %{name}-7.4-filetype_apparmor.patch Patch18: %{name}-7.3-filetype_spec.patch Patch21: %{name}-7.3-filetype_changes.patch Patch22: %{name}-7.4-filetype_mine.patch +Patch23: test87-python36.patch Patch100: vim73-no-static-libpython.patch %description @@ -161,6 +162,9 @@ cp %{SOURCE23} runtime/syntax/apparmor.vim %patch18 -p1 %patch21 -p1 %patch22 -p1 +%if 0%{?python3_version_nodots} >= 36 +%patch23 -p1 +%endif %patch100 -p1 cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} .