Skip to content

bpo-45156: fixes inifite loop on mock.seal() - #28300

Merged
vstinner merged 7 commits into
python:mainfrom
sobolevn:issue-45156
Sep 14, 2021
Merged

bpo-45156: fixes inifite loop on mock.seal()#28300
vstinner merged 7 commits into
python:mainfrom
sobolevn:issue-45156

Conversation

@sobolevn

@sobolevnsobolevn commented Sep 12, 2021

Copy link
Copy Markdown
Member

@tirkarthi

Copy link
Copy Markdown
Member

cc @mariocj89

Comment threadLib/unittest/mock.py Outdated
Comment threadMisc/NEWS.d/next/Tests/2021-09-13-00-28-17.bpo-45156.8oomV3.rst Outdated
Comment threadMisc/NEWS.d/next/Tests/2021-09-13-00-28-17.bpo-45156.8oomV3.rst Outdated
sobolevnand others added 5 commits September 13, 2021 16:36
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
@sobolevn

Copy link
Copy Markdown
MemberAuthor

@corona10 fixed! Thanks a lot for your help!

@mariocj89mariocj89 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for submitting this!

@miss-islington

Copy link
Copy Markdown
Contributor

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

@bedevere-bot

Copy link
Copy Markdown

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

@bedevere-botbedevere-bot removed the needs backport to 3.10 only security fixes label Sep 14, 2021
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 14, 2021
Fixes infinite loop on unittest.mock.seal() of mocks created by
unittest.create_autospec().
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
(cherry picked from commit 7f60c9e)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@miss-islington

Copy link
Copy Markdown
Contributor

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

@bedevere-bot

Copy link
Copy Markdown

GH-28327 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 14, 2021
Fixes infinite loop on unittest.mock.seal() of mocks created by
unittest.create_autospec().
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
(cherry picked from commit 7f60c9e)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@vstinner

Copy link
Copy Markdown
Member

Thanks @sobolevn for the fix. I trust @mariocj89 for the review, so I merged the PR ;-)

@sobolevn

Copy link
Copy Markdown
MemberAuthor

Thanks everyone!

miss-islington added a commit that referenced this pull request Sep 14, 2021
Fixes infinite loop on unittest.mock.seal() of mocks created by
unittest.create_autospec().
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
(cherry picked from commit 7f60c9e)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
vstinner pushed a commit that referenced this pull request Sep 14, 2021
…28326)
Fixes infinite loop on unittest.mock.seal() of mocks created by
unittest.create_autospec().
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
(cherry picked from commit 7f60c9e)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@sobolevn@tirkarthi@miss-islington@bedevere-bot@vstinner@cjw296@mariocj89@corona10@the-knights-who-say-ni