Ethan Furman <et...@stoneleaf.us> added the comment:
(2) is false. >>> from enum import Enum >>> >>> class MyEnum(Enum): ... def __new__(cls, value): ... member = object.__new__(cls) ... return member ... ONE = 1 ... >>> MyEnum.ONE MyEnum.ONE >>> MyEnum._use_args_ True >>> MyEnum._member_type_ <class 'object'> If coverage shows a branch not being tested, design a test for it instead of removing the branch. ---------- assignee: -> ethan.furman nosy: +ethan.furman stage: patch review -> test needed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46296> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com