From 5cf28abd149c6a7c75f78c3f623ba7ad0fb37821 Mon Sep 17 00:00:00 2001 From: Jakob Lykke Andersen Date: Mon, 20 Jan 2020 19:52:49 +0100 Subject: [PATCH] C++, hax because of Windows path separators --- tests/test_domain_cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py index 7626ff99d..d26947bfe 100644 --- a/tests/test_domain_cpp.py +++ b/tests/test_domain_cpp.py @@ -788,7 +788,7 @@ def test_xref_parsing(): def filter_warnings(warning, file): lines = warning.getvalue().split("\n"); - res = [l for l in lines if "/domain-cpp/{}.rst".format(file) in l and + res = [l for l in lines if "domain-cpp" in l and "{}.rst".format(file) in l and "WARNING: document isn't included in any toctree" not in l] print("Filtered warnings for file '{}':".format(file)) for w in res: