From bb6041169a0c6663b057dd40249fd074f3b063ca Mon Sep 17 00:00:00 2001 From: Davide Brunato Date: Sat, 3 Feb 2024 22:13:00 +0100 Subject: [PATCH] Fix CI tests with Python 3.10.11 --- elementpath/helpers.py | 2 +- tests/test_xpath1_parser.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/elementpath/helpers.py b/elementpath/helpers.py index a5a44c44..898d60aa 100644 --- a/elementpath/helpers.py +++ b/elementpath/helpers.py @@ -283,7 +283,7 @@ def split_function_test(function_test: str) -> List[str]: def is_absolute_uri(uri: str) -> bool: try: - parts = urlsplit(uri) + parts = urlsplit(uri.strip()) except ValueError: return False else: diff --git a/tests/test_xpath1_parser.py b/tests/test_xpath1_parser.py index e1fa88c7..82da87c4 100644 --- a/tests/test_xpath1_parser.py +++ b/tests/test_xpath1_parser.py @@ -1686,7 +1686,6 @@ def test_get_function(self): self.assertEqual(func('foo', 1, ' bar', 2), 'foo1 bar2') - @unittest.skipIf(lxml_etree is None, "The lxml library is not installed") class LxmlXPath1ParserTest(XPath1ParserTest): etree = lxml_etree