Title: test_enum emits a deprecation warning from test_custom_strenum_with_warning
Type: Stage: resolved
Components: Tests Versions:
Status: closed Resolution: duplicate
Dependencies: Superseder: DeprecationWarning in test_enum over formatting
View: 44564
Assigned To: Nosy List: ethan.furman, iritkatriel
Priority: normal Keywords: patch

Created on 2021-07-31 16:32 by iritkatriel, last changed 2021-07-31 18:30 by iritkatriel. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 27513 closed iritkatriel, 2021-07-31 16:39
Messages (1)
msg398647 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-07-31 16:32
% ./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/", line 2324, in test_custom_strenum_with_warning
    self.assertEqual(, '{}'.format(
  File "/Users/iritkatriel/src/cpython-1/Lib/", line 1006, in __format__
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 18:30:36iritkatrielsetstatus: open -> closed
resolution: duplicate
superseder: DeprecationWarning in test_enum over formatting
stage: patch review -> resolved
2021-07-31 16:39:54iritkatrielsetkeywords: + patch
stage: patch review
pull_requests: + pull_request26028
2021-07-31 16:32:45iritkatrielcreate