Skip to content

Commit

Permalink
Fix a pytest warning about an invalid escape sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
tleonhardt committed Nov 2, 2024
1 parent 499d9ba commit 04c958c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_transcript.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def __init__(self, *args, **kwargs):
speak_parser.add_argument('-p', '--piglatin', action="store_true", help="atinLay")
speak_parser.add_argument('-s', '--shout', action="store_true", help="N00B EMULATION MODE")

# Escape open bracket since help text can contain markup
speak_parser.add_argument('-r', '--repeat', type=int, help="output \[n] times")
# Escape open bracket since help text can contain rich markup
speak_parser.add_argument('-r', '--repeat', type=int, help=r"output \[n] times")

@cmd2.with_argparser(speak_parser, with_unknown_args=True)
def do_speak(self, opts, arg):
Expand Down

0 comments on commit 04c958c

Please sign in to comment.