From: Andrey Rakhmatullin <wrar@debian.org>
Date: Thu, 6 Nov 2025 21:38:51 +0500
Subject: Update the test expectations for libxml2 2.15.0+.

---
 tests/test_xpathfuncs.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_xpathfuncs.py b/tests/test_xpathfuncs.py
index 7739982..07fec94 100644
--- a/tests/test_xpathfuncs.py
+++ b/tests/test_xpathfuncs.py
@@ -120,7 +120,7 @@ class XPathFuncsTestCase(unittest.TestCase):
         sel = Selector(text=body)
         self.assertRaisesRegex(
             ValueError,
-            "Unregistered function in myfunc",
+            "Unregistered function(: myfunc)? in myfunc",
             sel.xpath,
             "myfunc()",
         )
@@ -132,7 +132,7 @@ class XPathFuncsTestCase(unittest.TestCase):
         set_xpathfunc("myfunc", None)
         self.assertRaisesRegex(
             ValueError,
-            "Unregistered function in myfunc",
+            "Unregistered function(: myfunc)? in myfunc",
             sel.xpath,
             "myfunc()",
         )
