We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b569790 + d7f7f9d commit 5257fe8Copy full SHA for 5257fe8
tests/test_subparser.py
@@ -134,8 +134,12 @@ def configure(self):
134
self.add_subparsers(help="sub-command1 help")
135
self.add_subparsers(help="sub-command2 help")
136
137
- with self.assertRaises(SystemExit):
138
- Args().parse_args([])
+ if sys.version_info >= (3, 12, 5):
+ with self.assertRaises(ArgumentError):
139
+ Args().parse_args([])
140
+ else:
141
+ with self.assertRaises(SystemExit):
142
143
144
def test_add_subparsers_with_add_argument(self):
145
class SubparserA(Tap):
0 commit comments