Skip to content

Commit

Permalink
Fix #3732 — work around lxml 5.1.0 bug (#3735)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Jan 10, 2024
1 parent b96f05a commit 869fdd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_relative_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import io
import os

import lxml
import lxml.html
import pytest

from nikola import __main__
Expand All @@ -27,7 +27,7 @@ def test_relative_links(build, output_dir):

assert not any(
url.startswith("..")
for _, _, url, _ in lxml.html.iterlinks(data)
for _, _, url, _ in lxml.html.fromstring(data).iterlinks()
if url.endswith("css")
)

Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_relative_links_with_pages_in_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import io
import os

import lxml
import lxml.html
import pytest

from nikola import __main__
Expand All @@ -26,7 +26,7 @@ def test_relative_links(build, output_dir):

assert not any(
url.startswith("..")
for _, _, url, _ in lxml.html.iterlinks(data)
for _, _, url, _ in lxml.html.fromstring(data).iterlinks()
if url.endswith("css")
)

Expand Down

0 comments on commit 869fdd2

Please sign in to comment.