Skip to content
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

bpo-44353: Add tests to cover typing.NewType pickling #27302

Merged
merged 3 commits into from
Jul 24, 2021

Conversation

uriyyo
Copy link
Member

@uriyyo uriyyo commented Jul 23, 2021

@uriyyo
Copy link
Member Author

uriyyo commented Jul 23, 2021

@ambv Could you please review this PR and add skip-news label?

@ambv ambv added the skip news label Jul 23, 2021
Lib/test/test_typing.py Outdated Show resolved Hide resolved
Lib/test/test_typing.py Outdated Show resolved Hide resolved
@uriyyo
Copy link
Member Author

uriyyo commented Jul 23, 2021

@serhiy-storchaka What should I do with this PR?

@serhiy-storchaka
Copy link
Member

See also #27311.

@uriyyo
Copy link
Member Author

uriyyo commented Jul 23, 2021

As far as I see #27311 will include code from this PR.

Should I close this issue?

@serhiy-storchaka
Copy link
Member

__reduce__ should use __qualname__, not __name__.

You can either copy pickle-related code from #27311 or close this issue.

@serhiy-storchaka
Copy link
Member

You need to copy also changes in constructor and tests.

@uriyyo
Copy link
Member Author

uriyyo commented Jul 23, 2021

Done, changes from your PR has been copied to this

@ambv
Copy link
Contributor

ambv commented Jul 24, 2021

Rebased over main after GH-27311 got merged.

@ambv ambv merged commit a22b05d into python:main Jul 24, 2021
@ambv ambv added the needs backport to 3.10 only security fixes label Jul 24, 2021
@miss-islington
Copy link
Contributor

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

@bedevere-bot
Copy link

GH-27328 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jul 24, 2021
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 24, 2021
…7302)

(cherry picked from commit a22b05d)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
ambv pushed a commit that referenced this pull request Jul 24, 2021
…H-27328)

(cherry picked from commit a22b05d)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
@ambv
Copy link
Contributor

ambv commented Jul 24, 2021

Thanks a lot Yurii! ✨ 🍰 ✨

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.

None yet

8 participants