Skip to content

Commit 006488a

Browse files
committed
Make the test stable
1 parent 36e1900 commit 006488a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ycmd/completers/python/python_completer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ def ComputeCandidatesInner( self, request_data ):
217217
def ComputeSignaturesInner( self, request_data ):
218218
with self._jedi_lock:
219219
signatures = self._GetJediScript( request_data ).call_signatures()
220+
# Sorting bu the number or arguments makes the order stable for the tests
221+
# and isn't harmful. The order returned by jedi seems to be arbitrary.
222+
signatures = sorted( signatures, key=lambda s: len( s.params ) )
220223

221224
active_signature = 0
222225
active_parameter = 0

0 commit comments

Comments
 (0)