From 063abf35e81deaf749ebbcfee339fbd1d9e89412 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Wed, 4 Dec 2019 13:24:07 +0100 Subject: Deal with some "pylint: disable=" comments + When possible, fix the violation. + Else, add a comment: + An explanation (if not already present) and keep disable. + A TODO (if not already present) and remove the disable. - This makes tox job report more pylint violations, but any such violation is fixable and should be fixed. - Although some need to be fixed in VPP, such as enum item long names. Change-Id: I48604b5eda070083d79dff1439620dbd9e798e1f Signed-off-by: Vratko Polak --- resources/libraries/python/VatExecutor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resources/libraries/python/VatExecutor.py') diff --git a/resources/libraries/python/VatExecutor.py b/resources/libraries/python/VatExecutor.py index be8dbbe9dc..19b92a6a1a 100644 --- a/resources/libraries/python/VatExecutor.py +++ b/resources/libraries/python/VatExecutor.py @@ -20,6 +20,8 @@ from os import remove from paramiko.ssh_exception import SSHException from robot.api import logger +import resources.libraries.python.DUTSetup as PidLib + from resources.libraries.python.Constants import Constants from resources.libraries.python.PapiHistory import PapiHistory from resources.libraries.python.ssh import SSH, SSHTimeout @@ -60,8 +62,6 @@ def get_vpp_pid(node): running on the DUT node. :rtype: int or list """ - # pylint: disable=import-outside-toplevel - import resources.libraries.python.DUTSetup as PidLib pid = PidLib.DUTSetup.get_vpp_pid(node) return pid -- cgit 1.2.3-korg