This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients ethan.furman, iritkatriel
Date 2021-07-31.16:32:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627749165.55.0.6553669311.issue44798@roundup.psfhosted.org>
In-reply-to
Content
% ./python.exe -E -We -m test -v test_enum


======================================================================
ERROR: test_custom_strenum_with_warning (test.test_enum.TestEnum)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_enum.py", line 2324, in test_custom_strenum_with_warning
    self.assertEqual(OkayEnum.one, '{}'.format(OkayEnum.one))
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/enum.py", line 1006, in __format__
    warnings.warn(
    ^^^^^^^^^^^^^^
DeprecationWarning: in 3.12 format() will use the enum member, not the enum member's value;
use a format specifier, such as :d for an integer-based Enum, to maintain the current display

----------------------------------------------------------------------
History
Date User Action Args
2021-07-31 16:32:45iritkatrielsetrecipients: + iritkatriel, ethan.furman
2021-07-31 16:32:45iritkatrielsetmessageid: <1627749165.55.0.6553669311.issue44798@roundup.psfhosted.org>
2021-07-31 16:32:45iritkatriellinkissue44798 messages
2021-07-31 16:32:45iritkatrielcreate