Skip to content

Conversation

@drinkmorewaterr
Copy link

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

@pytorch-bot
Copy link

pytorch-bot bot commented Feb 11, 2026

🔗 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 Failures

As of commit 4ff0898 with merge base 429925d (image):

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.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 11, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Feb 11, 2026

@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)",
Copy link
Contributor

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

@drinkmorewaterr
Copy link
Author

@pytorchbot label "release notes: Update test for py3.12 compat"

@pytorch-bot
Copy link

pytorch-bot bot commented Feb 11, 2026

Didn't find following labels among repository labels: release notes: Update test for py3.12 compat

@drinkmorewaterr
Copy link
Author

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot bot added the release notes: none Do not include this in the release notes label Feb 11, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants