diff --git a/cssselect/xpath.py b/cssselect/xpath.py index db50c77..eb8be92 100644 --- a/cssselect/xpath.py +++ b/cssselect/xpath.py @@ -180,7 +180,7 @@ def css_to_xpath(self, css, prefix='descendant-or-self::'): This string is prepended to the XPath expression for each selector. The default makes selectors scoped to the context node’s subtree. :raises: - :class:`SelectorSyntaxError` on invalid selectors, + :class:`~cssselect.SelectorSyntaxError` on invalid selectors, :class:`ExpressionError` on unknown/unsupported selectors, including pseudo-elements. :returns: diff --git a/tests/requirements.txt b/tests/requirements.txt index 5232e84..000d5f2 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,5 +1,5 @@ codecov lxml;python_version!="3.4" lxml<=4.3.5;python_version=="3.4" -pytest +pytest >=4.6, <4.7 # 4.7 drops support for Python 2.7 and 3.4 pytest-cov \ No newline at end of file