Skip to content

Commit

Permalink
Make the test stable
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Jun 27, 2019
1 parent 36e1900 commit 006488a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ycmd/completers/python/python_completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ def ComputeCandidatesInner( self, request_data ):
def ComputeSignaturesInner( self, request_data ):
with self._jedi_lock:
signatures = self._GetJediScript( request_data ).call_signatures()
# Sorting bu the number or arguments makes the order stable for the tests
# and isn't harmful. The order returned by jedi seems to be arbitrary.
signatures = sorted( signatures, key=lambda s: len( s.params ) )

active_signature = 0
active_parameter = 0
Expand Down

0 comments on commit 006488a

Please sign in to comment.