1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
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()",
)
|