Skip to content

Commit aa95d05

Browse files
authored
Fix a pytest warning about an invalid escape sequence (#1360)
1 parent 499d9ba commit aa95d05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_transcript.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def __init__(self, *args, **kwargs):
4949
speak_parser.add_argument('-p', '--piglatin', action="store_true", help="atinLay")
5050
speak_parser.add_argument('-s', '--shout', action="store_true", help="N00B EMULATION MODE")
5151

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

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

0 commit comments

Comments
 (0)