From e736eea9346514284878c03d2878e0b7c233ae35 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 21 Jun 2019 00:28:18 +0200 Subject: [PATCH] Use staticmethod for call signature tests instead of str str has different signatures for Python 2 and 3 and is therefore annoying to test. --- test/vspec/signatures.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/vspec/signatures.vim b/test/vspec/signatures.vim index db98208..ca4248e 100644 --- a/test/vspec/signatures.vim +++ b/test/vspec/signatures.vim @@ -39,9 +39,9 @@ describe 'signatures' it 'simple after CursorHoldI with only parenthesis' noautocmd normal o doautocmd CursorHoldI - noautocmd normal istr() + noautocmd normal istaticmethod() doautocmd CursorHoldI - Expect getline(1) == '?!?jedi=0, ?!? (*_*o: bytes*_*, encoding: str = ..., errors: str = ...) ?!?jedi?!?' + Expect getline(1) == '?!?jedi=0, ?!? (*_*f: Callable*_*) ?!?jedi?!?' end it 'no signature' @@ -64,11 +64,11 @@ describe 'signatures' let g:jedi#show_call_signatures = 2 call jedi#configure_call_signatures() - exe 'normal ostr( ' + exe 'normal ostaticmethod( ' redir => msg Python jedi_vim.show_call_signatures() redir END - Expect msg == "\nstr((o: bytes, o: object = ...), …)" + Expect msg == "\nstaticmethod(f: Callable)" redir => msg doautocmd InsertLeave