Close #18693: __dir__ removed from Enum; help() now helpful.

This commit is contained in:
Ethan Furman 2013-08-10 13:07:49 -07:00
parent a4998a7041
commit 53f58dbd12
2 changed files with 0 additions and 21 deletions

View file

@ -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)