diff options
author | umarcor <unai.martinezcorral@ehu.eus> | 2021-06-22 12:26:43 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-06-22 18:51:02 +0200 |
commit | 51e9764f04da876993a80f6f09910e019eb84446 (patch) | |
tree | e58928ecfbafb74bf33e8873423e7ed5874422c2 /testsuite | |
parent | 25a3580831170f8a0acd0a79aca2c94ea4652338 (diff) | |
download | ghdl-51e9764f04da876993a80f6f09910e019eb84446.tar.gz ghdl-51e9764f04da876993a80f6f09910e019eb84446.tar.bz2 ghdl-51e9764f04da876993a80f6f09910e019eb84446.zip |
fix issues reported by Codacy
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/issue43/run.py | 12 | ||||
-rw-r--r-- | testsuite/pyunit/libghdl/Initialize.py | 4 | ||||
-rw-r--r-- | testsuite/pyunit/lsp/LanguageServer.py | 3 |
3 files changed, 5 insertions, 14 deletions
diff --git a/testsuite/gna/issue43/run.py b/testsuite/gna/issue43/run.py index f1cb5ec01..d37c1cbaa 100644 --- a/testsuite/gna/issue43/run.py +++ b/testsuite/gna/issue43/run.py @@ -1,14 +1,6 @@ -import os
-import sys
-from string import join
from vunit import VUnit
-
-
-# Create VUnit instance by parsing command line arguments
vu = VUnit.from_argv()
vu.add_com()
-lib = vu.add_library("lib")
-lib.add_source_files("*.vhd")
-
-vu.main()
\ No newline at end of file +vu.add_library("lib").add_source_files("*.vhd")
+vu.main()
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 |