Skip to content

Commit 23e1c8b

Browse files
committed
fix tests for pypa#12166, add news entry
- tests expected results indendation was off - add bugfix news entry related to fix for pypa#12166
1 parent fe02ab7 commit 23e1c8b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

news/12166.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix completion script for zsh

tests/functional/test_completion.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@
4949
COMP_CWORD=$((CURRENT-1)) \\
5050
PIP_AUTO_COMPLETE=1 $words[1] 2>/dev/null )
5151
}
52-
if [[ $zsh_eval_context[-1] == loadautofunc ]]; then
53-
# autoload from fpath, call function directly
54-
__pip "$@"
55-
else
56-
# eval/source/. command, register function for later
57-
compdef __pip -P 'pip[0-9.]#'
58-
fi""",
52+
if [[ $zsh_eval_context[-1] == loadautofunc ]]; then
53+
# autoload from fpath, call function directly
54+
__pip "$@"
55+
else
56+
# eval/source/. command, register function for later
57+
compdef __pip -P 'pip[0-9.]#'
58+
fi""",
5959
),
6060
(
6161
"powershell",

0 commit comments

Comments
 (0)