diff --git a/tests/test_build.py b/tests/test_build.py index d0572a8d4b..6c4188e128 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -819,8 +819,8 @@ def test_version_switcher_error_states( ) elif url == "http://a.b/switcher.json": # this file doesn't exist" - not_read = """WARNING: The version switcher "http://a.b/switcher.json" - file cannot be read due to the following error:\n""" + not_read = ("WARNING: The version switcher "http://a.b/switcher.json" + "file cannot be read due to the following error:\n") assert not_read in escape_ansi(sphinx_build.warnings).strip() elif url == "missing_url.json": # this file is missing the url key for one version