mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Issue #27626: Spelling fixes in docs, comments and internal names
Based on patch by Ville Skyttä.
This commit is contained in:
parent
eac67be948
commit
eb9957065a
33 changed files with 48 additions and 48 deletions
|
@ -654,7 +654,7 @@ class TestEnum(unittest.TestCase):
|
|||
self.Season.SPRING]
|
||||
)
|
||||
|
||||
def test_programatic_function_string(self):
|
||||
def test_programmatic_function_string(self):
|
||||
SummerMonth = Enum('SummerMonth', 'june july august')
|
||||
lst = list(SummerMonth)
|
||||
self.assertEqual(len(lst), len(SummerMonth))
|
||||
|
@ -671,7 +671,7 @@ class TestEnum(unittest.TestCase):
|
|||
self.assertIn(e, SummerMonth)
|
||||
self.assertIs(type(e), SummerMonth)
|
||||
|
||||
def test_programatic_function_string_with_start(self):
|
||||
def test_programmatic_function_string_with_start(self):
|
||||
SummerMonth = Enum('SummerMonth', 'june july august', start=10)
|
||||
lst = list(SummerMonth)
|
||||
self.assertEqual(len(lst), len(SummerMonth))
|
||||
|
@ -688,7 +688,7 @@ class TestEnum(unittest.TestCase):
|
|||
self.assertIn(e, SummerMonth)
|
||||
self.assertIs(type(e), SummerMonth)
|
||||
|
||||
def test_programatic_function_string_list(self):
|
||||
def test_programmatic_function_string_list(self):
|
||||
SummerMonth = Enum('SummerMonth', ['june', 'july', 'august'])
|
||||
lst = list(SummerMonth)
|
||||
self.assertEqual(len(lst), len(SummerMonth))
|
||||
|
@ -705,7 +705,7 @@ class TestEnum(unittest.TestCase):
|
|||
self.assertIn(e, SummerMonth)
|
||||
self.assertIs(type(e), SummerMonth)
|
||||
|
||||
def test_programatic_function_string_list_with_start(self):
|
||||
def test_programmatic_function_string_list_with_start(self):
|
||||
SummerMonth = Enum('SummerMonth', ['june', 'july', 'august'], start=20)
|
||||
lst = list(SummerMonth)
|
||||
self.assertEqual(len(lst), len(SummerMonth))
|
||||
|
@ -722,7 +722,7 @@ class TestEnum(unittest.TestCase):
|
|||
self.assertIn(e, SummerMonth)
|
||||
self.assertIs(type(e), SummerMonth)
|
||||
|
||||
def test_programatic_function_iterable(self):
|
||||
def test_programmatic_function_iterable(self):
|
||||
SummerMonth = Enum(
|
||||
'SummerMonth',
|
||||
(('june', 1), ('july', 2), ('august', 3))
|
||||
|
@ -742,7 +742,7 @@ class TestEnum(unittest.TestCase):
|
|||
self.assertIn(e, SummerMonth)
|
||||
self.assertIs(type(e), SummerMonth)
|
||||
|
||||
def test_programatic_function_from_dict(self):
|
||||
def test_programmatic_function_from_dict(self):
|
||||
SummerMonth = Enum(
|
||||
'SummerMonth',
|
||||
OrderedDict((('june', 1), ('july', 2), ('august', 3)))
|
||||
|
@ -762,7 +762,7 @@ class TestEnum(unittest.TestCase):
|
|||
self.assertIn(e, SummerMonth)
|
||||
self.assertIs(type(e), SummerMonth)
|
||||
|
||||
def test_programatic_function_type(self):
|
||||
def test_programmatic_function_type(self):
|
||||
SummerMonth = Enum('SummerMonth', 'june july august', type=int)
|
||||
lst = list(SummerMonth)
|
||||
self.assertEqual(len(lst), len(SummerMonth))
|
||||
|
@ -778,7 +778,7 @@ class TestEnum(unittest.TestCase):
|
|||
self.assertIn(e, SummerMonth)
|
||||
self.assertIs(type(e), SummerMonth)
|
||||
|
||||
def test_programatic_function_type_with_start(self):
|
||||
def test_programmatic_function_type_with_start(self):
|
||||
SummerMonth = Enum('SummerMonth', 'june july august', type=int, start=30)
|
||||
lst = list(SummerMonth)
|
||||
self.assertEqual(len(lst), len(SummerMonth))
|
||||
|
@ -794,7 +794,7 @@ class TestEnum(unittest.TestCase):
|
|||
self.assertIn(e, SummerMonth)
|
||||
self.assertIs(type(e), SummerMonth)
|
||||
|
||||
def test_programatic_function_type_from_subclass(self):
|
||||
def test_programmatic_function_type_from_subclass(self):
|
||||
SummerMonth = IntEnum('SummerMonth', 'june july august')
|
||||
lst = list(SummerMonth)
|
||||
self.assertEqual(len(lst), len(SummerMonth))
|
||||
|
@ -810,7 +810,7 @@ class TestEnum(unittest.TestCase):
|
|||
self.assertIn(e, SummerMonth)
|
||||
self.assertIs(type(e), SummerMonth)
|
||||
|
||||
def test_programatic_function_type_from_subclass_with_start(self):
|
||||
def test_programmatic_function_type_from_subclass_with_start(self):
|
||||
SummerMonth = IntEnum('SummerMonth', 'june july august', start=40)
|
||||
lst = list(SummerMonth)
|
||||
self.assertEqual(len(lst), len(SummerMonth))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue