mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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@gentoo.org>
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
From 382d8a48d0e0b4d5ff8687dfa5b7d689f906999a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Dave Halter <davidhalter88@gmail.com>
|
||||||
|
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
|
||||||
@@ -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
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
@@ -35,15 +35,17 @@ BDEPEND="
|
|||||||
|
|
||||||
DOCS=( AUTHORS.txt CONTRIBUTING.md README.rst )
|
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() {
|
src_prepare() {
|
||||||
vim-plugin_src_prepare
|
vim-plugin_src_prepare
|
||||||
|
|
||||||
rm doc/logotype-a.svg || die
|
rm doc/logotype-a.svg || die
|
||||||
rmdir pythonx/{jedi,parso} || 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.
|
# Makefile tries hard to call tests so let's silence this phase.
|
||||||
|
|||||||
Reference in New Issue
Block a user