mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
issue26893: use mro() to examine class heirarchy
This commit is contained in:
parent
dd1bcdf618
commit
3803ad47bb
2 changed files with 14 additions and 1 deletions
|
@ -1568,6 +1568,19 @@ class TestUnique(unittest.TestCase):
|
|||
triple = 3
|
||||
turkey = 3
|
||||
|
||||
def test_unique_with_name(self):
|
||||
@unique
|
||||
class Silly(Enum):
|
||||
one = 1
|
||||
two = 'dos'
|
||||
name = 3
|
||||
@unique
|
||||
class Sillier(IntEnum):
|
||||
single = 1
|
||||
name = 2
|
||||
triple = 3
|
||||
value = 4
|
||||
|
||||
|
||||
expected_help_output_with_docs = """\
|
||||
Help on class Color in module %s:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue