commit:     3d4659db014e7ca9d2dccc7aebcd4b307085e8d2
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  9 03:56:11 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Wed Jul  9 04:05:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d4659db

app-vim/jedi: get the tests working again

- one patched to ignore failure... but it doesn't fail?
- one upstream patch removing an apparently useless test

Closes: https://bugs.gentoo.org/933450
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 .../jedi-0.11.2-remove-unreasonable-test.patch     | 33 ++++++++++++++++++++++
 app-vim/jedi/jedi-0.11.2.ebuild                    | 12 ++++----
 2 files changed, 40 insertions(+), 5 deletions(-)

diff --git a/app-vim/jedi/files/jedi-0.11.2-remove-unreasonable-test.patch 
b/app-vim/jedi/files/jedi-0.11.2-remove-unreasonable-test.patch
new file mode 100644
index 000000000000..9a676d4ba218
--- /dev/null
+++ b/app-vim/jedi/files/jedi-0.11.2-remove-unreasonable-test.patch
@@ -0,0 +1,33 @@
+From 382d8a48d0e0b4d5ff8687dfa5b7d689f906999a Mon Sep 17 00:00:00 2001
+From: Dave Halter <[email protected]>
+Date: Fri, 27 Dec 2024 23:10:27 +0100
+Subject: [PATCH] Remove a test that failed for no apparent reason
+
+---
+ test/vspec/completions.vim | 13 -------------
+ 1 file changed, 13 deletions(-)
+
+diff --git a/test/vspec/completions.vim b/test/vspec/completions.vim
+index 068e5392..5a9a3050 100644
+--- a/test/vspec/completions.vim
++++ b/test/vspec/completions.vim
+@@ -52,19 +52,6 @@ describe 'completions'
+         Expect getline('.') == 'IndentationError().filename'
+     end
+ 
+-    it 'multi complete'
+-        " NOTE: nvim results in "importErr()" here with completeopt+=longest,
+-        " but Vim is fine.
+-        " This is due to `pumvisible()` in jedi#complete_opened being true
+-        " with nvim still, but it is 0 with Vim, i.e. Vim appears to close
+-        " the pum already (with the tests).
+-        "
+-        " This might be a misunderstanding though, since the test might not
+-        " expect the "import" keyword to be offered for completion?!
+-        normal oImpXErrX()
+-        Expect getline('.') == 'ImportError()'
+-    end
+-
+     it 'cycling through entries popup_select_first=0'
+         set completeopt+=longest
+         let g:jedi#popup_select_first = 0

diff --git a/app-vim/jedi/jedi-0.11.2.ebuild b/app-vim/jedi/jedi-0.11.2.ebuild
index 0bd6e02ec6c7..1078a468eba3 100644
--- a/app-vim/jedi/jedi-0.11.2.ebuild
+++ b/app-vim/jedi/jedi-0.11.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -35,15 +35,17 @@ BDEPEND="
 
 DOCS=( AUTHORS.txt CONTRIBUTING.md README.rst )
 
+PATCHES=(
+       # https://github.com/davidhalter/jedi-vim/pull/1131
+       # Seemingly fallout from jedi/parso update
+       "${FILESDIR}"/${P}-remove-unreasonable-test.patch
+)
+
 src_prepare() {
        vim-plugin_src_prepare
 
        rm doc/logotype-a.svg || die
        rmdir pythonx/{jedi,parso} || die
-
-       # Disable failing tests
-       sed -i test/vspec/signatures.vim \
-               -e "/it 'highlights correct argument'/a SKIP 'fail'" || die
 }
 
 # Makefile tries hard to call tests so let's silence this phase.

Reply via email to