Skip to content

Commit

Permalink
fix tests for pypa#12166, add news entry
Browse files Browse the repository at this point in the history
- tests expected results indendation was off
- add bugfix news entry

related to fix for pypa#12166
  • Loading branch information
dtrifiro committed Oct 6, 2023
1 parent fe02ab7 commit 23e1c8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions news/12166.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix completion script for zsh
14 changes: 7 additions & 7 deletions tests/functional/test_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
COMP_CWORD=$((CURRENT-1)) \\
PIP_AUTO_COMPLETE=1 $words[1] 2>/dev/null )
}
if [[ $zsh_eval_context[-1] == loadautofunc ]]; then
# autoload from fpath, call function directly
__pip "$@"
else
# eval/source/. command, register function for later
compdef __pip -P 'pip[0-9.]#'
fi""",
if [[ $zsh_eval_context[-1] == loadautofunc ]]; then
# autoload from fpath, call function directly
__pip "$@"
else
# eval/source/. command, register function for later
compdef __pip -P 'pip[0-9.]#'
fi""",
),
(
"powershell",
Expand Down

0 comments on commit 23e1c8b

Please sign in to comment.