FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-103329: Add regression test for PropertyMock with side effect by freakboy3742 · Pull Request #103358 · python/cpython · GitHub

/ cpython Public

gh-103329: Add regression test for PropertyMock with side effect - #103358

Merged
carljm merged 3 commits into
python:mainfrom
freakboy3742:propertymock_sideeffect
Apr 8, 2023
Merged

gh-103329: Add regression test for PropertyMock with side effect#103358
carljm merged 3 commits into
python:mainfrom
freakboy3742:propertymock_sideeffect

Conversation

freakboy3742 commented Apr 8, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

#102213 introduced an optimisation to __getattr__ that had some unexpected side effects, one of which was a change in behavior of PropertyMock when the property has a side effect.

This change was reverted in #103332; This PR adds a regression test to ensure that PropertyMock behavior is preserved. It also enhances the test of the return value for PropertyMock.

Fixes #103329.

carljm commented Apr 8, 2023

Copy link
Copy Markdown
Member

Thanks @freakboy3742! (Also, hello!)

Copy link
Copy Markdown
Contributor Author

@carljm 👋

carljm added the needs backport to 3.11 only security fixes label Apr 8, 2023
carljm merged commit 26c6598 into python:main Apr 8, 2023

Copy link
Copy Markdown
Contributor

Thanks @freakboy3742 for the PR, and @carljm for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 8, 2023
pythonGH-103358)

(cherry picked from commit 26c6598)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>

Copy link
Copy Markdown

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

bedevere-bot removed the needs backport to 3.11 only security fixes label Apr 8, 2023
freakboy3742 deleted the propertymock_sideeffect branch April 8, 2023 02:09
miss-islington added a commit that referenced this pull request Apr 8, 2023
…103358)

(cherry picked from commit 26c6598)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to 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.

3.12.0a7 changes behavior of PropertyMock

4 participants


Back | FazBrowse Home | New Git URL