summaryrefslogtreecommitdiff
path: root/tests/test_transcript.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2021-06-16 13:29:30 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2021-06-17 14:10:24 -0400
commit525d32cfde6c2f9fecb0ee44972c18d4b0bf614f (patch)
treeda5b43bd51d63f42a0d5b965b31fbd18e8ebf494 /tests/test_transcript.py
parent25baddfd652f5f8421cbac9d251a4d33d178c18e (diff)
downloadcmd2-git-525d32cfde6c2f9fecb0ee44972c18d4b0bf614f.tar.gz
Fixing tests on Python 3.10
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r--tests/test_transcript.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py
index 22e04239..f5ca653e 100644
--- a/tests/test_transcript.py
+++ b/tests/test_transcript.py
@@ -3,7 +3,6 @@
"""
Cmd2 functional testing based on transcript
"""
-import argparse
import os
import random
import re
@@ -46,7 +45,7 @@ class CmdLineApp(cmd2.Cmd):
self.intro = 'This is an intro banner ...'
- speak_parser = argparse.ArgumentParser()
+ speak_parser = cmd2.Cmd2ArgumentParser()
speak_parser.add_argument('-p', '--piglatin', action="store_true", help="atinLay")
speak_parser.add_argument('-s', '--shout', action="store_true", help="N00B EMULATION MODE")
speak_parser.add_argument('-r', '--repeat', type=int, help="output [n] times")
@@ -69,7 +68,7 @@ class CmdLineApp(cmd2.Cmd):
do_say = do_speak # now "say" is a synonym for "speak"
do_orate = do_speak # another synonym, but this one takes multi-line input
- mumble_parser = argparse.ArgumentParser()
+ mumble_parser = cmd2.Cmd2ArgumentParser()
mumble_parser.add_argument('-r', '--repeat', type=int, help="output [n] times")
@cmd2.with_argparser(mumble_parser, with_unknown_args=True)