diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-22 19:04:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 19:04:55 +0200 |
commit | 983236ac3dfd0c455a0ac910a9a468ea2c81e5d9 (patch) | |
tree | 2cc031d1ee5e38edc4897691a3d7029b7125c4aa /testsuite/pyunit | |
parent | bcd26f428e704eef5ef665bea7448f3990b5e010 (diff) | |
parent | 79d7e4f88b5ea170386628e3d2d00a1bd9634154 (diff) | |
download | ghdl-983236ac3dfd0c455a0ac910a9a468ea2c81e5d9.tar.gz ghdl-983236ac3dfd0c455a0ac910a9a468ea2c81e5d9.tar.bz2 ghdl-983236ac3dfd0c455a0ac910a9a468ea2c81e5d9.zip |
Fix Codacy issues
Diffstat (limited to 'testsuite/pyunit')
-rw-r--r-- | testsuite/pyunit/libghdl/Initialize.py | 4 | ||||
-rw-r--r-- | testsuite/pyunit/lsp/LanguageServer.py | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/testsuite/pyunit/libghdl/Initialize.py b/testsuite/pyunit/libghdl/Initialize.py index 4d5bb521a..369faee07 100644 --- a/testsuite/pyunit/libghdl/Initialize.py +++ b/testsuite/pyunit/libghdl/Initialize.py @@ -18,11 +18,11 @@ class Instantiate(TestCase): @staticmethod def getIdentifier(node): - """Return the Python string from node :obj:`node` identifier""" + """Return the Python string from node :obj:`node` identifier.""" return name_table.Get_Name_Ptr(nodes.Get_Identifier(node)) def test_InitializeGHDL(self) -> None: - """Initialization: set options and then load libaries""" + """Initialization: set options and then load libaries.""" libghdl.initialize() # Print error messages on the console. diff --git a/testsuite/pyunit/lsp/LanguageServer.py b/testsuite/pyunit/lsp/LanguageServer.py index 36ee6da2a..c1bcf1898 100644 --- a/testsuite/pyunit/lsp/LanguageServer.py +++ b/testsuite/pyunit/lsp/LanguageServer.py @@ -1,5 +1,4 @@ import os -import string from sys import executable from io import BytesIO from json import load as json_load, loads as json_loads, dumps as json_dumps @@ -7,7 +6,7 @@ from pathlib import Path from urllib.parse import quote from subprocess import run as subprocess_run, PIPE from typing import Optional -from unittest import TestCase, skip +from unittest import TestCase from pyGHDL.lsp.lsp import LanguageProtocolServer, LSPConn |