summaryrefslogtreecommitdiff
path: root/tests/test_domain_cpp.py
diff options
context:
space:
mode:
authorJakob Lykke Andersen <Jakob@caput.dk>2020-01-20 19:52:49 +0100
committerJakob Lykke Andersen <Jakob@caput.dk>2020-01-20 19:52:49 +0100
commit5cf28abd149c6a7c75f78c3f623ba7ad0fb37821 (patch)
tree86889574a7158a8b9f1b76ad777fa3a40bb2a10a /tests/test_domain_cpp.py
parent6d7ff482f6af6f3066e1c15d3dd8cae2ee554db8 (diff)
downloadsphinx-git-5cf28abd149c6a7c75f78c3f623ba7ad0fb37821.tar.gz
C++, hax because of Windows path separators
Diffstat (limited to 'tests/test_domain_cpp.py')
-rw-r--r--tests/test_domain_cpp.py2
1 files changed, 1 insertions, 1 deletions
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: