Uh oh!
There was an error while loading. Please reload this page.
gh-103272: add regression test for getattr that raises - #103336
Conversation
bedevere-bot
commented
Apr 7, 2023
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
There was a problem hiding this comment.
Awesome work, thanks for narrowing this down!
I think we can make the test case slightly simpler to make it clearer what's getting tested:
class A:
def __getattr__(self, name):
raise ValueError
@property
def foo(self):
return self.__getattr__("asdf")
A().foo
And maybe rename the test to test_getattr_raises or something
sobolevn
commented
Apr 7, 2023
I've got the revert merged, now this test must pass :) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
sobolevn
left a comment
There was a problem hiding this comment.
Congrats on your first CPython PR 🎉
hauntsaninja
left a comment
There was a problem hiding this comment.
Thanks again, this is great!
miss-islington
commented
Apr 7, 2023
Thanks @sunmy2019 for the PR, and @hauntsaninja for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
…ythonGH-103336) (cherry picked from commit 5d7d86f) Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
bedevere-bot
commented
Apr 7, 2023
GH-103351 is a backport of this pull request to the 3.11 branch. |
Add test case taken from gh-103272 for #103332.