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