Skip to content

gh-95573: Fix a mistake in asyncio ssl test suppressing all logs#95687

Merged
ambv merged 1 commit into
python:mainfrom
fantix:asyncio-test-fix-warning-suppress
Aug 5, 2022
Merged

gh-95573: Fix a mistake in asyncio ssl test suppressing all logs#95687
ambv merged 1 commit into
python:mainfrom
fantix:asyncio-test-fix-warning-suppress

Conversation

@fantix

@fantix fantix commented Aug 4, 2022

Copy link
Copy Markdown
Contributor

This was originally introduced here and inherited in the cpython test suite, preventing the root reason of issues like #95573 from being easily seen.

Basically the idea of this filter is to prevent a warning saying returning true from eof_received() has no effect when using ssl, so we need to check the message instead of the logger name (like logging.Filter does).

@fantix fantix requested review from 1st1 and asvetlov as code owners August 4, 2022 22:35
@bedevere-bot bedevere-bot added tests Tests in the Lib/test dir awaiting review labels Aug 4, 2022
@ambv ambv added needs backport to 3.11 only security fixes skip news needs backport to 3.10 only security fixes and removed needs backport to 3.10 only security fixes labels Aug 5, 2022
@ambv

ambv commented Aug 5, 2022

Copy link
Copy Markdown
Contributor

Actually this doesn't go to 3.10, test_ssl was only added in 3.11.

@ambv ambv merged commit e1d68b3 into python:main Aug 5, 2022
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @fantix for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-95699 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Aug 5, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 5, 2022
…gs (pythonGH-95687)

(cherry picked from commit e1d68b3)

Co-authored-by: Fantix King <fantix.king@gmail.com>
ambv pushed a commit that referenced this pull request Aug 5, 2022
…-95687) (GH-95699)

(cherry picked from commit e1d68b3)

Co-authored-by: Fantix King <fantix.king@gmail.com>
@fantix fantix deleted the asyncio-test-fix-warning-suppress branch August 8, 2022 18:36
iritkatriel pushed a commit to iritkatriel/cpython that referenced this pull request Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants