Skip to content

Commit 9965694

Browse files
committed
assert fix
1 parent 6eeae5c commit 9965694

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_argparse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,10 +2192,10 @@ def test_wrong_argument_subparsers_no_destination_error(self):
21922192
subparsers.add_parser('foo')
21932193
subparsers.add_parser('bar')
21942194
with self.assertRaises(ArgumentParserError) as excinfo:
2195-
parser.parse_args(('python',))
2195+
parser.parse_args(('baz',))
21962196
self.assertRegex(
21972197
excinfo.exception.stderr,
2198-
r"error: argument {foo,bar}: invalid choice: 'baz' \(choose from 'foo', 'bar'\)\n$"
2198+
r"error: argument {foo,bar}: invalid choice: 'baz', maybe you meant 'bar'? \(choose from 'foo', 'bar'\)\n$"
21992199
)
22002200

22012201
def test_optional_subparsers(self):

0 commit comments

Comments
 (0)