Skip to content

gh-136285: Improve pickle protocol testing in test_interpreters #136286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jul 4, 2025

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 👍

@serhiy-storchaka
Copy link
Member

It looks that there is a bug. So it is better to fix it first and then run tests for all protocols.

@sobolevn sobolevn added the needs backport to 3.14 bugs and security fixes label Jul 5, 2025
@sobolevn sobolevn removed skip news tests Tests in the Lib/test dir labels Jul 5, 2025
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 👍

This is the right way that preserves the same semantic as for protocols >= 2.

Comment on lines +123 to +124
recv, send = channels.create()
for ch in [recv, send]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test repeats also the test in TestSendChannelAttrs. I think that only needs to test the receiver channel here.

Suggested change
recv, send = channels.create()
for ch in [recv, send]:
ch, _ = channels.create()

(and de-indent the following code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants