various versions of soupsieve (better solution for lp#2086199). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-beautifulsoup4?expand=0&rev=96
17 lines
572 B
Diff
17 lines
572 B
Diff
---
|
|
bs4/tests/test_css.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/bs4/tests/test_css.py
|
|
+++ b/bs4/tests/test_css.py
|
|
@@ -332,7 +332,8 @@ class TestCSSSelectors(SoupTest):
|
|
assert "yes" == chosen.string
|
|
|
|
def test_unsupported_pseudoclass(self):
|
|
- with pytest.raises(NotImplementedError):
|
|
+ # Compatibility with various versions of soupsieve
|
|
+ with pytest.raises((NotImplementedError,SelectorSyntaxError)):
|
|
self.soup.select("a:no-such-pseudoclass")
|
|
|
|
with pytest.raises(SelectorSyntaxError):
|