diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-07-07 07:32:37 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-07-07 07:32:37 +0200 |
commit | cfa7ec6144148849b2adefde29dbdb9c7a6fcf8f (patch) | |
tree | 9e96d5a8fa45bc9050a77342df6a9f2f4f855dd6 /testsuite/pyunit | |
parent | 24b745ee2772c777bda4d49a054ff3a1801a31ef (diff) | |
download | ghdl-cfa7ec6144148849b2adefde29dbdb9c7a6fcf8f.tar.gz ghdl-cfa7ec6144148849b2adefde29dbdb9c7a6fcf8f.tar.bz2 ghdl-cfa7ec6144148849b2adefde29dbdb9c7a6fcf8f.zip |
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.
Diffstat (limited to 'testsuite/pyunit')
-rw-r--r-- | testsuite/pyunit/lsp/LanguageServer.py | 6 |
1 files changed, 1 insertions, 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: |