jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1222793?usp=email )
Change subject: Tests: Make TestFamily.test_obsolete_readonly more robust ......................................................................
Tests: Make TestFamily.test_obsolete_readonly more robust
GraalPy 25 has a different AttributeError message.
Bug: T413721 Change-Id: I696ccf61fb1f95d5bba4c89435dc6563a8235dfd --- M tests/family_tests.py 1 file changed, 3 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/family_tests.py b/tests/family_tests.py index 69b3171..6d530d6 100755 --- a/tests/family_tests.py +++ b/tests/family_tests.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Tests for the family module.""" # -# (C) Pywikibot team, 2014-2025 +# (C) Pywikibot team, 2014-2026 # # Distributed under the terms of the MIT license. # @@ -137,12 +137,12 @@ family = Family.load('wikipedia') with self.assertRaisesRegex( AttributeError, - "'mappingproxy' object has no attribute 'update'"): + "'<?mappingproxy.*' object has no attribute 'update'"): family.obsolete.update({})
with self.assertRaisesRegex( TypeError, - "'mappingproxy' object does not support item assignment"): + "'<?mappingproxy.*' object does not support item assignment"): family.obsolete['a'] = 'b'
with self.assertRaisesRegex(
pywikibot-commits@lists.wikimedia.org