-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Support contextlib.ExitStack #146506
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
base: gh/guilhermeleobas/107/base
Are you sure you want to change the base?
Support contextlib.ExitStack #146506
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/146506
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New Failures, 1 Unrelated FailureAs of commit d2919e2 with merge base c5ec545 ( NEW FAILURES - The following jobs have failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
test/dynamo/test_exitstack.py
Outdated
self.assertEqual(y.dtype, torch.float64) | ||
|
||
|
||
class CPythonTestBaseExitStack: |
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.
Missing link to CPython https://github.com/python/cpython/blob/v3.13.1/Lib/test/test_contextlib.py
ghstack-source-id: 6db770a Pull Request resolved: pytorch#146506
Rebased |
ghstack-source-id: 453a254 Pull Request resolved: pytorch/pytorch#146506
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Stack from ghstack (oldest at bottom):
StopIteration(value)
with value from the return stmt #157152contextlib.suppress
#147990