Skip to content

Commit

Permalink
fixing warnings after test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
moltob authored and schettino72 committed May 12, 2019
1 parent ee87c21 commit ce50ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cmd_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ def test_zsh_arg_line(self):

opt4 = CmdOption({'name':'o4', 'default':'', 'help':'my desc [b]a',
'short':'s', 'long':'lll'})
assert ('"(-s|--lll)"{-s,--lll}"[my desc [b\]a]" \\' ==
assert ('"(-s|--lll)"{-s,--lll}"[my desc [b\\]a]" \\' ==
TabCompletion._zsh_arg_line(opt4))

# escaping `"` test
opt5 = CmdOption({'name':'o5', 'default':'',
'help':'''my "des'c [b]a''',
'short':'s', 'long':'lll'})
assert ('''"(-s|--lll)"{-s,--lll}"[my \\"des'c [b\]a]" \\''' ==
assert ('''"(-s|--lll)"{-s,--lll}"[my \\"des'c [b\\]a]" \\''' ==
TabCompletion._zsh_arg_line(opt5))


Expand Down

0 comments on commit ce50ff2

Please sign in to comment.