-
Notifications
You must be signed in to change notification settings - Fork 835
Update assertRaisesRegex pattern for Python 3.12 compatibility #17396
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: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17396
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 3 Unrelated FailuresAs of commit 4ff0898 with merge base 429925d ( NEW FAILURES - The following jobs have failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@drinkmorewaterr has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92997414. |
| with self.assertRaisesRegex( | ||
| AttributeError, | ||
| "can't set attribute 'spec'", | ||
| "(can't set attribute|has no setter)", |
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.
I believe we still test earlier python versions in oss (or we should be if not) can you make the regex pass on either string
|
@pytorchbot label "release notes: Update test for py3.12 compat" |
|
Didn't find following labels among repository labels: release notes: Update test for py3.12 compat |
|
@pytorchbot label "release notes: none" |
…ch#17396) Summary: Python 3.12 changed the error message for read-only property assignment from "can't set attribute 'spec'" to "property 'spec' of ... object has no setter". Update the regex pattern to match both versions. Differential Revision: D92997414
58525fd to
4ff0898
Compare
Summary: Python 3.12 changed the error message for read-only property assignment from "can't set attribute 'spec'" to "property 'spec' of ... object has no setter". Update the regex pattern to match both versions.
Differential Revision: D92997414