mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Use proper plural forms in argparse (#4391)
This commit is contained in:
parent
13d49ee7d6
commit
1215915045
3 changed files with 10 additions and 4 deletions
|
|
@ -4315,7 +4315,7 @@ class TestImportStar(TestCase):
|
|||
items = [
|
||||
name
|
||||
for name, value in vars(argparse).items()
|
||||
if not name.startswith("_")
|
||||
if not (name.startswith("_") or name == 'ngettext')
|
||||
if not inspect.ismodule(value)
|
||||
]
|
||||
self.assertEqual(sorted(items), sorted(argparse.__all__))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue