Source: beautifulsoup4 Version: 4.9.0-1 Severity: serious
The autopkgtest for beautifulsoup4 is failing in both plain unstable tests and testing migration tests, but not in plain testing tests. ERROR: test_dangling_combinator (bs4.tests.test_tree.TestSoupSelector) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/bs4/tests/test_tree.py", line 2268, in test_dangling_combinator self.assertRaises(SyntaxError, self.soup.select, 'h1 >') File "/usr/lib/python3.8/unittest/case.py", line 816, in assertRaises return context.handle('assertRaises', args, kwargs) File "/usr/lib/python3.8/unittest/case.py", line 202, in handle callable_obj(*args, **kwargs) File "/usr/lib/python3/dist-packages/bs4/element.py", line 1831, in select results = soupsieve.select(selector, self, namespaces, limit, **kwargs) File "/usr/lib/python3/dist-packages/soupsieve/__init__.py", line 98, in select return compile(select, namespaces, flags, **kwargs).select(tag, limit) File "/usr/lib/python3/dist-packages/soupsieve/__init__.py", line 62, in compile return cp._cached_css_compile(pattern, namespaces, custom, flags) File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 208, in _cached_css_compile CSSParser(pattern, custom=custom_selectors, flags=flags).process_selectors(), File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 1043, in process_selectors return self.parse_selectors(self.selector_iter(self.pattern), index, flags) File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 977, in parse_selectors raise SelectorSyntaxError( soupsieve.util.SelectorSyntaxError: Expected a selector at position 4 line 1: h1 > ^ ====================================================================== ERROR: test_invalid_multiple_select (bs4.tests.test_tree.TestSoupSelector) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/bs4/tests/test_tree.py", line 2299, in test_invalid_multiple_select self.assertRaises(SyntaxError, self.soup.select, ',x, y') File "/usr/lib/python3.8/unittest/case.py", line 816, in assertRaises return context.handle('assertRaises', args, kwargs) File "/usr/lib/python3.8/unittest/case.py", line 202, in handle callable_obj(*args, **kwargs) File "/usr/lib/python3/dist-packages/bs4/element.py", line 1831, in select results = soupsieve.select(selector, self, namespaces, limit, **kwargs) File "/usr/lib/python3/dist-packages/soupsieve/__init__.py", line 98, in select return compile(select, namespaces, flags, **kwargs).select(tag, limit) File "/usr/lib/python3/dist-packages/soupsieve/__init__.py", line 62, in compile return cp._cached_css_compile(pattern, namespaces, custom, flags) File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 208, in _cached_css_compile CSSParser(pattern, custom=custom_selectors, flags=flags).process_selectors(), File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 1043, in process_selectors return self.parse_selectors(self.selector_iter(self.pattern), index, flags) File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 937, in parse_selectors has_selector, sel = self.parse_combinator( File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 766, in parse_combinator raise SelectorSyntaxError( soupsieve.util.SelectorSyntaxError: The combinator ',' at postion 0, must have a selector before it line 1: ,x, y ^ ====================================================================== ERROR: test_invalid_tag (bs4.tests.test_tree.TestSoupSelector) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/bs4/tests/test_tree.py", line 2021, in test_invalid_tag self.assertRaises(SyntaxError, self.soup.select, 'tag%t') File "/usr/lib/python3.8/unittest/case.py", line 816, in assertRaises return context.handle('assertRaises', args, kwargs) File "/usr/lib/python3.8/unittest/case.py", line 202, in handle callable_obj(*args, **kwargs) File "/usr/lib/python3/dist-packages/bs4/element.py", line 1831, in select results = soupsieve.select(selector, self, namespaces, limit, **kwargs) File "/usr/lib/python3/dist-packages/soupsieve/__init__.py", line 98, in select return compile(select, namespaces, flags, **kwargs).select(tag, limit) File "/usr/lib/python3/dist-packages/soupsieve/__init__.py", line 62, in compile return cp._cached_css_compile(pattern, namespaces, custom, flags) File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 208, in _cached_css_compile CSSParser(pattern, custom=custom_selectors, flags=flags).process_selectors(), File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 1043, in process_selectors return self.parse_selectors(self.selector_iter(self.pattern), index, flags) File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 894, in parse_selectors key, m = next(iselector) File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 1036, in selector_iter raise SelectorSyntaxError(msg, self.pattern, index) soupsieve.util.SelectorSyntaxError: Invalid character '%' position 3 line 1: tag%t ^ ====================================================================== ERROR: test_unsupported_pseudoclass (bs4.tests.test_tree.TestSoupSelector) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/bs4/tests/test_tree.py", line 2211, in test_unsupported_pseudoclass self.assertRaises( File "/usr/lib/python3.8/unittest/case.py", line 816, in assertRaises return context.handle('assertRaises', args, kwargs) File "/usr/lib/python3.8/unittest/case.py", line 202, in handle callable_obj(*args, **kwargs) File "/usr/lib/python3/dist-packages/bs4/element.py", line 1831, in select results = soupsieve.select(selector, self, namespaces, limit, **kwargs) File "/usr/lib/python3/dist-packages/soupsieve/__init__.py", line 98, in select return compile(select, namespaces, flags, **kwargs).select(tag, limit) File "/usr/lib/python3/dist-packages/soupsieve/__init__.py", line 62, in compile return cp._cached_css_compile(pattern, namespaces, custom, flags) File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 208, in _cached_css_compile CSSParser(pattern, custom=custom_selectors, flags=flags).process_selectors(), File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 1043, in process_selectors return self.parse_selectors(self.selector_iter(self.pattern), index, flags) File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 902, in parse_selectors has_selector, is_html = self.parse_pseudo_class(sel, m, has_selector, iselector, is_html) File "/usr/lib/python3/dist-packages/soupsieve/css_parser.py", line 633, in parse_pseudo_class raise SelectorSyntaxError( soupsieve.util.SelectorSyntaxError: Invalid syntax for pseudo class ':nth-of-type' line 1: a:nth-of-type(a) From diffing test logs I belive this was most-likely caused by the update to python-soupsieve
_______________________________________________ Python-modules-team mailing list Python-modules-team@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team