diff --git a/tests/_server/templates/test_templates.py b/tests/_server/templates/test_templates.py index 4c95da0b5da..146789d0fe9 100644 --- a/tests/_server/templates/test_templates.py +++ b/tests/_server/templates/test_templates.py @@ -165,7 +165,7 @@ def test_notebook_page_template_custom_head(self) -> None: self.mode, ) - assert head in result + assert head in result.split("", 1)[0] _assert_no_leftover_replacements(result) def test_notebook_page_template_with_custom_css_config(self) -> None: