classification
Title: Enum related deprecation warnings in test_httpservers and test_faulthandler
Type: behavior Stage: patch review
Components: Tests Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ethan.furman, shreyanavigyan, vstinner, xtreak
Priority: normal Keywords: patch

Created on 2021-05-03 08:04 by xtreak, last changed 2021-05-03 09:31 by shreyanavigyan.

Pull Requests
URL Status Linked Edit
PR 25844 merged shreyanavigyan, 2021-05-03 09:31
Messages (2)
msg392778 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2021-05-03 08:04
These warnings seem to be related to changes in issue43945

./python -Wall -m test test_httpservers test_faulthandler
0:00:00 load avg: 4.83 Run tests sequentially
0:00:00 load avg: 4.83 [1/2] test_httpservers
/root/cpython/Lib/test/test_httpservers.py:279: 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 IntEnum member, to maintain the current display
  self.con.request('HEAD', '/{}'.format(code))
/root/cpython/Lib/test/test_httpservers.py:279: 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 IntEnum member, to maintain the current display
  self.con.request('HEAD', '/{}'.format(code))
/root/cpython/Lib/test/test_httpservers.py:279: 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 IntEnum member, to maintain the current display
  self.con.request('HEAD', '/{}'.format(code))
/root/cpython/Lib/test/test_httpservers.py:279: 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 IntEnum member, to maintain the current display
  self.con.request('HEAD', '/{}'.format(code))
/root/cpython/Lib/test/test_httpservers.py:279: 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 IntEnum member, to maintain the current display
  self.con.request('HEAD', '/{}'.format(code))
/root/cpython/Lib/test/test_httpservers.py:262: 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 IntEnum member, to maintain the current display
  self.con.request('SEND_ERROR', '/{}'.format(code))
/root/cpython/Lib/test/test_httpservers.py:262: 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 IntEnum member, to maintain the current display
  self.con.request('SEND_ERROR', '/{}'.format(code))
/root/cpython/Lib/test/test_httpservers.py:262: 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 IntEnum member, to maintain the current display
  self.con.request('SEND_ERROR', '/{}'.format(code))
/root/cpython/Lib/test/test_httpservers.py:262: 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 IntEnum member, to maintain the current display
  self.con.request('SEND_ERROR', '/{}'.format(code))
/root/cpython/Lib/test/test_httpservers.py:262: 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 IntEnum member, to maintain the current display
  self.con.request('SEND_ERROR', '/{}'.format(code))
0:00:00 load avg: 4.83 [2/2] test_faulthandler
/root/cpython/Lib/test/test_faulthandler.py:705: 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 IntEnum member, to maintain the current display
  code = code.format(
/root/cpython/Lib/test/test_faulthandler.py:705: 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 IntEnum member, to maintain the current display
  code = code.format(
/root/cpython/Lib/test/test_faulthandler.py:705: 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 IntEnum member, to maintain the current display
  code = code.format(
/root/cpython/Lib/test/test_faulthandler.py:705: 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 IntEnum member, to maintain the current display
  code = code.format(
/root/cpython/Lib/test/test_faulthandler.py:705: 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 IntEnum member, to maintain the current display
  code = code.format(
/root/cpython/Lib/test/test_faulthandler.py:705: 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 IntEnum member, to maintain the current display
  code = code.format(

== Tests result: SUCCESS ==

All 2 tests OK.

Total duration: 22.9 sec
Tests result: SUCCESS
msg392783 - (view) Author: Shreyan Avigyan (shreyanavigyan) * Date: 2021-05-03 09:31
Couldn't reproduce warnings for test_faulthandler but found a patch for test_httpservers. I'm opening a PR for it. (Patch adapted from https://github.com/python/cpython/pull/25769)
History
Date User Action Args
2021-05-03 09:31:46shreyanavigyansetkeywords: + patch
stage: patch review
pull_requests: + pull_request24527
2021-05-03 09:31:40shreyanavigyansetnosy: + shreyanavigyan
messages: + msg392783
2021-05-03 08:04:55xtreakcreate