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(
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1222793?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I696ccf61fb1f95d5bba4c89435dc6563a8235dfd
Gerrit-Change-Number: 1222793
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]