mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Use proper gettext plural forms in optparse (closes #4391).
Original patch by Dwayne Bailey.
This commit is contained in:
parent
2592f62a5a
commit
6a1454f3a4
3 changed files with 18 additions and 12 deletions
|
|
@ -631,7 +631,7 @@ class TestStandard(BaseTest):
|
|||
option_list=options)
|
||||
|
||||
def test_required_value(self):
|
||||
self.assertParseFail(["-a"], "-a option requires an argument")
|
||||
self.assertParseFail(["-a"], "-a option requires 1 argument")
|
||||
|
||||
def test_invalid_integer(self):
|
||||
self.assertParseFail(["-b", "5x"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue