Commit 231216d
test_partitioner_with_spec: accept Python 3.12 setter error message
Summary:
Python 3.12 changed the AttributeError message emitted when assigning to a property without a setter, from "can't set attribute 'spec'" to "property 'spec' of 'CustomPartitioner' object has no setter". The `assertRaisesRegex` in `test_partitioner_with_spec` only matched the pre-3.12 form, so the test failed on the Python 3.12 runtime.
Updated the regex to match either form.
Authored with Claude.
Differential Revision: D1043165401 parent fa857bd commit 231216d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
0 commit comments