diff --git a/weasyprint/tests/test_api.py b/weasyprint/tests/test_api.py index 2801e7aa2..ed659d6a1 100644 --- a/weasyprint/tests/test_api.py +++ b/weasyprint/tests/test_api.py @@ -785,7 +785,7 @@ def assert_links(html, expected_links_by_page, expected_anchors_by_page,
''', [[]], [{}], [([], [])], base_url=None, warnings=[ - 'WARNING: Ignored `-weasy-link: url("../lipsum")` at 1:1, ' + 'WARNING: Ignored `-weasy-link: url(../lipsum)` at 1:1, ' 'Relative URI reference without a base URI']) # Internal or absolute URI reference without a base URI: OK diff --git a/weasyprint/tests/test_pdf.py b/weasyprint/tests/test_pdf.py index 9b9b11eb6..287bcb724 100644 --- a/weasyprint/tests/test_pdf.py +++ b/weasyprint/tests/test_pdf.py @@ -528,7 +528,7 @@ def test_relative_links_missing_base(): with pytest.raises(AttributeError): pdf_file.pages[0].get_indirect_dict_array('Annots', pdf_file) assert len(logs) == 1 - assert 'WARNING: Ignored `-weasy-link: url("../lipsum")`' in logs[0] + assert 'WARNING: Ignored `-weasy-link: url(../lipsum)`' in logs[0] assert 'Relative URI reference without a base URI' in logs[0]