Skip to content

Commit

Permalink
Tests: fixup: resolve FutureWarning by prepending context-node (dot).
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Jul 30, 2024
1 parent f42cf83 commit c514c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_builders/test_build_html_toctree.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def test_numbered_toctree(app):

@pytest.mark.parametrize("expect", [
# internal references should be same-document; external should not
("//a[@class='reference internal']", _intradocument_hyperlink_check),
("//a[@class='reference external']", r'https?://'),
(".//a[@class='reference internal']", _intradocument_hyperlink_check),
(".//a[@class='reference external']", r'https?://'),
])
@pytest.mark.sphinx('singlehtml', testroot='toctree')
def test_singlehtml_hyperlinks(app, cached_etree_parse, expect):
Expand Down

0 comments on commit c514c4f

Please sign in to comment.