From cfa7ec6144148849b2adefde29dbdb9c7a6fcf8f Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 7 Jul 2021 07:32:37 +0200 Subject: testsuite/pyunit/lsp/LanguageServer.py: do not quote anymore uri. The ':' after the driver letter must not be quoted on Windows. And there are no special characters (yet) in the filenames of the tests. --- testsuite/pyunit/lsp/LanguageServer.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/testsuite/pyunit/lsp/LanguageServer.py b/testsuite/pyunit/lsp/LanguageServer.py index 388990597..8a13c21e9 100644 --- a/testsuite/pyunit/lsp/LanguageServer.py +++ b/testsuite/pyunit/lsp/LanguageServer.py @@ -8,12 +8,8 @@ from subprocess import run as subprocess_run, PIPE from typing import Optional from unittest import TestCase - from pyGHDL.lsp.lsp import LanguageProtocolServer, LSPConn -is_windows = os.name == "nt" - - class StrConn: __res: str @@ -69,7 +65,7 @@ def root_subst(obj, path, uri): if isinstance(v, str): if k in ("rootUri", "uri"): assert v.startswith("file://@ROOT@/") - obj[k] = "file://" + quote(uri + v[13:]) + obj[k] = "file://" + uri + v[13:] elif k in ("rootPath", "message"): obj[k] = v.replace("@ROOT@", path) else: -- cgit v1.2.3