-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
Closed as not planned
Closed as not planned
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Lines 1034 to 1047 in 5e7ea95
| class TestPlainEnumClass(_EnumTests, _PlainOutputTests, unittest.TestCase): | |
| enum_type = Enum | |
| class TestPlainEnumFunction(_EnumTests, _PlainOutputTests, unittest.TestCase): | |
| enum_type = Enum | |
| class TestPlainFlagClass(_EnumTests, _PlainOutputTests, _FlagTests, unittest.TestCase): | |
| enum_type = Flag | |
| class TestPlainFlagFunction(_EnumTests, _PlainOutputTests, _FlagTests, unittest.TestCase): | |
| enum_type = Flag |
Looks like some cases here are just duplicates: because in some cases Function and Class tests have different enum_type definitions:
Lines 1104 to 1109 in 5e7ea95
| class TestMixedIntClass(_EnumTests, _MixedOutputTests, unittest.TestCase): | |
| class enum_type(int, Enum): pass | |
| class TestMixedIntFunction(_EnumTests, _MixedOutputTests, unittest.TestCase): | |
| enum_type = Enum('enum_type', type=int) |
But, some have identical. I propose to delete cases where enum_type is a duplicate.
I have a PR ready.
It was introduced in #108704
CC @ethanfurman
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error