From 4b9e16f14db8b52d07b1cbdaa11cd2b37e2f1f0c Mon Sep 17 00:00:00 2001 From: micbou Date: Thu, 7 Apr 2016 00:12:50 +0200 Subject: [PATCH] Fix PostComplete test ReturnEmptyIfPendingMatches_OldVim test was identical to ReturnEmptyIfPendingMatches_NewVim. --- python/ycm/tests/postcomplete_tests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/ycm/tests/postcomplete_tests.py b/python/ycm/tests/postcomplete_tests.py index 88eab2fe..32d62c90 100644 --- a/python/ycm/tests/postcomplete_tests.py +++ b/python/ycm/tests/postcomplete_tests.py @@ -329,9 +329,8 @@ class PostComplete_test(): self, *args ): completions = [ BuildCompletion( None ) ] with self._SetupForCsharpCompletionDone( completions ): - with patch( 'ycm.vimsupport.VimVersionAtLeast', return_value = True ): - with patch( 'ycm.vimsupport.GetVariableValue', - GetVariableValue_CompleteItemIs( 'Te' ) ): + with patch( 'ycm.vimsupport.VimVersionAtLeast', return_value = False ): + with patch( 'ycm.vimsupport.TextBeforeCursor', return_value = ' Te' ): eq_( [], self.ycm.GetCompletionsUserMayHaveCompleted() )