Message398647
% ./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
---------------------------------------------------------------------- |
|
Date |
User |
Action |
Args |
2021-07-31 16:32:45 | iritkatriel | set | recipients:
+ iritkatriel, ethan.furman |
2021-07-31 16:32:45 | iritkatriel | set | messageid: <1627749165.55.0.6553669311.issue44798@roundup.psfhosted.org> |
2021-07-31 16:32:45 | iritkatriel | link | issue44798 messages |
2021-07-31 16:32:45 | iritkatriel | create | |
|