mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Fix typos in documentation and comments
This commit is contained in:
parent
28f35b24b6
commit
cc71a795df
7 changed files with 13 additions and 13 deletions
|
@ -534,7 +534,7 @@ class TestOptionalsNargsDefault(ParserTestCase):
|
|||
|
||||
|
||||
class TestOptionalsNargs1(ParserTestCase):
|
||||
"""Tests specifying the 1 arg for an Optional"""
|
||||
"""Tests specifying 1 arg for an Optional"""
|
||||
|
||||
argument_signatures = [Sig('-x', nargs=1)]
|
||||
failures = ['a', '-x']
|
||||
|
@ -545,7 +545,7 @@ class TestOptionalsNargs1(ParserTestCase):
|
|||
|
||||
|
||||
class TestOptionalsNargs3(ParserTestCase):
|
||||
"""Tests specifying the 3 args for an Optional"""
|
||||
"""Tests specifying 3 args for an Optional"""
|
||||
|
||||
argument_signatures = [Sig('-x', nargs=3)]
|
||||
failures = ['a', '-x', '-x a', '-x a b', 'a -x', 'a -x b']
|
||||
|
@ -579,7 +579,7 @@ class TestOptionalsNargsOptional(ParserTestCase):
|
|||
|
||||
|
||||
class TestOptionalsNargsZeroOrMore(ParserTestCase):
|
||||
"""Tests specifying an args for an Optional that accepts zero or more"""
|
||||
"""Tests specifying args for an Optional that accepts zero or more"""
|
||||
|
||||
argument_signatures = [
|
||||
Sig('-x', nargs='*'),
|
||||
|
@ -598,7 +598,7 @@ class TestOptionalsNargsZeroOrMore(ParserTestCase):
|
|||
|
||||
|
||||
class TestOptionalsNargsOneOrMore(ParserTestCase):
|
||||
"""Tests specifying an args for an Optional that accepts one or more"""
|
||||
"""Tests specifying args for an Optional that accepts one or more"""
|
||||
|
||||
argument_signatures = [
|
||||
Sig('-x', nargs='+'),
|
||||
|
@ -1251,7 +1251,7 @@ class TestPrefixCharacterOnlyArguments(ParserTestCase):
|
|||
|
||||
|
||||
class TestNargsZeroOrMore(ParserTestCase):
|
||||
"""Tests specifying an args for an Optional that accepts zero or more"""
|
||||
"""Tests specifying args for an Optional that accepts zero or more"""
|
||||
|
||||
argument_signatures = [Sig('-x', nargs='*'), Sig('y', nargs='*')]
|
||||
failures = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue