File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2331,13 +2331,14 @@ def test_wrong_argument_subparsers_no_suggestions(self):
23312331 excinfo .exception .stderr ,
23322332 )
23332333
2334- def test_wrong_argument_no_suggestion_implicit (self ):
2334+ def test_wrong_argument_with_suggestion_implicit (self ):
23352335 parser = ErrorRaisingArgumentParser ()
23362336 parser .add_argument ('foo' , choices = ['bar' , 'baz' ])
23372337 with self .assertRaises (ArgumentParserError ) as excinfo :
23382338 parser .parse_args (('bazz' ,))
23392339 self .assertIn (
2340- "error: argument foo: invalid choice: 'bazz' (choose from bar, baz)" ,
2340+ "error: argument foo: invalid choice: 'bazz', maybe you meant"
2341+ " 'baz'? (choose from bar, baz)" ,
23412342 excinfo .exception .stderr ,
23422343 )
23432344
You can’t perform that action at this time.
0 commit comments