aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/test_relative_links.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2024-04-23 00:38:24 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2024-04-23 00:38:24 -0400
commit0199f695e93782d728bd31857afe54f4df92f351 (patch)
tree34e9030a05a89461d222172615c74891fba1e5ef /tests/integration/test_relative_links.py
parent22b8f5dae59e876643e8e3002f72282f3e8608c5 (diff)
parent9b0e86a8e74768c4fe848fb5ce8d754292db4e3e (diff)
Update upstream source from tag 'upstream/8.3.0'
Update to upstream version '8.3.0' with Debian dir bc13791b86ab63e4473e92288f1749c55a6ad540
Diffstat (limited to 'tests/integration/test_relative_links.py')
-rw-r--r--tests/integration/test_relative_links.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/test_relative_links.py b/tests/integration/test_relative_links.py
index 3b158cf..ea15455 100644
--- a/tests/integration/test_relative_links.py
+++ b/tests/integration/test_relative_links.py
@@ -3,7 +3,7 @@
import io
import os
-import lxml
+import lxml.html
import pytest
from nikola import __main__
@@ -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")
)