Skip to content

Commit 548d695

Browse files
committed
test_immutable_predicate: exception string change in python3.11
immutable property exception string chaged in python3.11 from "can't set attribute" to "object has no setter" test no supports both.
1 parent f7325c2 commit 548d695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_policies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ def test_init_kwargs(self):
12951295
))
12961296

12971297
def test_immutable_predicate(self):
1298-
expected_message_regex = "can't set attribute"
1298+
expected_message_regex = "can't set attribute|object has no setter"
12991299
hfp = HostFilterPolicy(child_policy=Mock(name='child_policy'),
13001300
predicate=Mock(name='predicate'))
13011301
with self.assertRaisesRegexp(AttributeError, expected_message_regex):

0 commit comments

Comments
 (0)