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

https://bugs.python.org/issue44353

@uriyyo
Copy link
Member Author

@uriyyo 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 Show resolved Hide resolved
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 uriyyo commented Jul 23, 2021

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

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jul 23, 2021

See also #27311.

@uriyyo
Copy link
Member Author

@uriyyo 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

@serhiy-storchaka serhiy-storchaka commented Jul 23, 2021

__reduce__ should use __qualname__, not __name__.

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

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jul 23, 2021

You need to copy also changes in constructor and tests.

@uriyyo
Copy link
Member Author

@uriyyo uriyyo commented Jul 23, 2021

Done, changes from your PR has been copied to this

@ambv ambv force-pushed the fix-issue-44353-tests branch from 3563d76 to 5c6cd2b Jul 24, 2021
@ambv
Copy link
Contributor

@ambv ambv commented Jul 24, 2021

Rebased over main after GH-27311 got merged.

@ambv ambv merged commit a22b05d into python:main Jul 24, 2021
12 checks passed
@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 24, 2021

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

@bedevere-bot bedevere-bot commented Jul 24, 2021

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

miss-islington added a commit to miss-islington/cpython that referenced this issue Jul 24, 2021
…7302)

(cherry picked from commit a22b05d)

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

(cherry picked from commit a22b05d)

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

@ambv 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