-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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-32384 fix test.test_generators for other implementations #4940
bpo-32384 fix test.test_generators for other implementations #4940
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. Thanks again to your contribution and we look forward to looking at it! |
Approved. Please sign the CLA and I'll merge this. |
Lib/test/test_generators.py
Outdated
|
||
|
||
# This tests to make sure that if a SIGINT arrives just before we send into a | ||
# yield from chain, the KeyboardInterrupt is raised in the innermost | ||
# generator (see bpo-30039). | ||
@unittest.skipUnless(_testcapi is not None and hasattr(_testcapi, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move hasattr on a new line.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
@1st1 Thanks for your review, I've fixed the style. Just noticed that the CLA robot only checks if there are new commits, because I've signed the CLA after the PR is created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and all of Yury's review comments have been addressed.
Thanks @isaiah for the PR, and @berkerpeksag for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7. |
(cherry picked from commit 4cc3eb4) Co-authored-by: Isaiah Peng <[email protected]>
GH-6891 is a backport of this pull request to the 3.7 branch. |
(cherry picked from commit 4cc3eb4) Co-authored-by: Isaiah Peng <[email protected]>
GH-6892 is a backport of this pull request to the 3.6 branch. |
(cherry picked from commit 4cc3eb4) Co-authored-by: Isaiah Peng <[email protected]>
(cherry picked from commit 4cc3eb4) Co-authored-by: Isaiah Peng <[email protected]>
Added guard to the
test.test_generators.SignalAndYieldFromTest
to check the existence of_testcapi.raise_SIGINT_then_send_None
https://bugs.python.org/issue32384