Skip to content

Commit

Permalink
test: Sort completion results in Python for ease of use in Python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jul 8, 2018
1 parent 4abf2ba commit f40cfe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/t/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def completion(request, bash: pexpect.spawn) -> CompletionResult:
line = bash.before[:-len(MAGIC_MARK)]
result = CompletionResult(
line,
[x for x in re.split(r" {2,}|\r\n", line) if x],
sorted(x for x in re.split(r" {2,}|\r\n", line) if x),
)
elif got == 2:
line = bash.after
Expand Down

0 comments on commit f40cfe0

Please sign in to comment.