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-46299: improve test_descr.py with stricter error handling #30471

Merged
merged 2 commits into from Jan 8, 2022

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jan 7, 2022

@@ -4452,6 +4450,8 @@ def __getattr__(self, attr):
print("Oops!")
except RuntimeError:
pass
else:
Copy link
Member

@corona10 corona10 Jan 7, 2022

Choose a reason for hiding this comment

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

Would you like to update the test by using
from contextlib import redirect_stdout?

Copy link
Member Author

@sobolevn sobolevn Jan 7, 2022

Choose a reason for hiding this comment

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

Thanks for the idea! But, I went for the smallest diff.

@corona10 corona10 merged commit e63066c into python:main Jan 8, 2022
11 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Jan 8, 2022

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

@miss-islington
Copy link
Contributor

miss-islington commented Jan 8, 2022

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 8, 2022
…onGH-30471)

(cherry picked from commit e63066c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@bedevere-bot
Copy link

bedevere-bot commented Jan 8, 2022

GH-30476 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 Jan 8, 2022
…onGH-30471)

(cherry picked from commit e63066c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@bedevere-bot
Copy link

bedevere-bot commented Jan 8, 2022

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

miss-islington added a commit that referenced this pull request Jan 8, 2022
…0471)

(cherry picked from commit e63066c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
miss-islington added a commit that referenced this pull request Jan 8, 2022
…0471)

(cherry picked from commit e63066c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
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

5 participants