Skip to content

Commit 3801496

Browse files
authored
test_partitioner_with_spec: accept Python 3.12 setter error message
Differential Revision: D104316540 Pull Request resolved: #19382
1 parent c77442b commit 3801496

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

exir/backend/test/test_partitioner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def partition(
106106

107107
with self.assertRaisesRegex(
108108
AttributeError,
109-
"can't set attribute 'spec'",
109+
r"(can't set attribute 'spec'|property 'spec' of .* object has no setter)",
110110
):
111111
my_partitioner.spec = {"new_key": "new_value"}
112112

0 commit comments

Comments
 (0)