diff --git a/sphinx/testing/comparer.py b/sphinx/testing/comparer.py index 0c6447246..ddd818394 100644 --- a/sphinx/testing/comparer.py +++ b/sphinx/testing/comparer.py @@ -100,4 +100,4 @@ def pytest_assertrepr_compare(op: str, left: Any, right: Any) -> List[str]: elif isinstance(right, PathComparer) and op == "==": return ['Comparing path:'] + right.rdiff(left) else: - raise RuntimeError + return []