mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Close #18693: __dir__ removed from Enum; help() now helpful.
This commit is contained in:
parent
a4998a7041
commit
53f58dbd12
2 changed files with 0 additions and 21 deletions
|
@ -78,21 +78,6 @@ class TestEnum(unittest.TestCase):
|
|||
def test_intenum_value(self):
|
||||
self.assertEqual(IntStooges.CURLY.value, 2)
|
||||
|
||||
def test_dir_on_class(self):
|
||||
Season = self.Season
|
||||
self.assertEqual(
|
||||
set(dir(Season)),
|
||||
set(['__class__', '__doc__', '__members__',
|
||||
'SPRING', 'SUMMER', 'AUTUMN', 'WINTER']),
|
||||
)
|
||||
|
||||
def test_dir_on_item(self):
|
||||
Season = self.Season
|
||||
self.assertEqual(
|
||||
set(dir(Season.WINTER)),
|
||||
set(['__class__', '__doc__', 'name', 'value']),
|
||||
)
|
||||
|
||||
def test_enum(self):
|
||||
Season = self.Season
|
||||
lst = list(Season)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue