Skip to content

[3.12] gh-109096: Silence test_httpservers fork + threads DeprecationWarning on CGI support - #109471

Merged
Yhg1s merged 1 commit into
python:3.12from
gpshead:tests/silence-cgi-fork-warning
Sep 17, 2023
Merged

[3.12] gh-109096: Silence test_httpservers fork + threads DeprecationWarning on CGI support#109471
Yhg1s merged 1 commit into
python:3.12from
gpshead:tests/silence-cgi-fork-warning

Conversation

@gpshead

@gpsheadgpshead commented Sep 15, 2023

Copy link
Copy Markdown
Member

We're not fixing CGIHTTPRequestHandler as it is deprecated in 3.13 to go away in 3.15. This just removes noise from our test suite when warnings are rightfully enabled.

If the long pre-existing fork+threading mix here ever causes anyone deadlocks as is possible, disabling the test entirely on that platform makes sense rather than attempting to fix http.server.CGIHTTPRequestHandler or refactor the test to not use a threaded server in the test.

…cationWarning on CGI support.
We're not fixing CGIHTTPRequestHandler as it is deprecated in 3.13 to go
away in 3.15. This just removes noise from our test suite when warnings
are rightfully enabled.
If the long pre-existing fork+threading mix here ever causes anyone
deadlocks as is possible, disabling the test entirely on that platform
makes sense rather than attempting to fix
http.server.CGIHTTPRequestHandler or refactor to not use a threaded
server in the test.
@gpsheadgpshead added tests Tests in the Lib/test dir 3.12 only security fixes labels Sep 15, 2023
@gpshead
gpshead marked this pull request as ready for review September 15, 2023 22:56
@gpshead

Copy link
Copy Markdown
MemberAuthor

This can wait for 3.12.1.

@gpsheadgpshead self-assigned this Sep 15, 2023
@Yhg1s
Yhg1s merged commit 52bbb22 into python:3.12Sep 17, 2023
@gpshead
gpshead deleted the tests/silence-cgi-fork-warning branch September 17, 2023 23:06
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.12only security fixesskip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@gpshead@Yhg1s