From f5687ff89ef80f8a764ab4acd6bd5d3d5dece6c8 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Sun, 2 Jul 2023 13:18:30 -0700 Subject: [PATCH] more hack --- mypy/test/testfinegrained.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mypy/test/testfinegrained.py b/mypy/test/testfinegrained.py index d5ea65510eb2..ba0526d32558 100644 --- a/mypy/test/testfinegrained.py +++ b/mypy/test/testfinegrained.py @@ -317,6 +317,7 @@ def maybe_suggest(self, step: int, server: Server, src: str, tmp_dir: str) -> li # JSON contains already escaped \ on Windows, so requires a bit of care. val = val.replace("\\\\", "\\") val = val.replace(os.path.realpath(tmp_dir) + os.path.sep, "") + val = val.replace(os.path.abspath(tmp_dir) + os.path.sep, "") output.extend(val.strip().split("\n")) return normalize_messages(output)