Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Fix test exception messages
  • Loading branch information
savannahostrowski committed Nov 24, 2024
commit c55dbee846165f2774ebcedcc7c4b788e6abd0e5
4 changes: 2 additions & 2 deletions Lib/test/test_argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -3001,7 +3001,7 @@ def test_nested_argument_group(self):
parser = argparse.ArgumentParser()
g = parser.add_argument_group()
self.assertRaisesRegex(ValueError,
'nested argument groups are not supported',
'argument groups cannot be nested',
g.add_argument_group)

# ===================
Expand Down Expand Up @@ -3309,7 +3309,7 @@ def test_nested_mutex_groups(self):
g = parser.add_mutually_exclusive_group()
g.add_argument("--spam")
self.assertRaisesRegex(ValueError,
'nested mutually exclusive groups are not supported',
'mutually exclusive groups cannot be nested',
g.add_mutually_exclusive_group)

class MEMixin(object):
Expand Down