Fix some pylint

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2024-08-26 11:36:01 -04:00
parent 90ceb87b7c
commit 29145b9e93
4 changed files with 3 additions and 4 deletions

View File

@ -30,7 +30,7 @@ except ImportError:
# Newer setuptools will transparently support 'import distutils' though.
# That can be overridden with SETUPTOOLS_USE_DISTUTILS env variable
import distutils.command.build # pylint: disable=wrong-import-order,deprecated-module,import-error
BUILD_COMMAND_CLASS = distutils.command.build.build
BUILD_COMMAND_CLASS = distutils.command.build.build # pylint: disable=c-extension-no-member
SYSPREFIX = sysconfig.get_config_var("prefix")

View File

@ -8,7 +8,6 @@
import os.path
import pytest
import libvirt
from virtinst import Guest
from virtinst import NodeDevice
@ -45,6 +44,7 @@ def _testNode2DeviceCompare(conn, nodename, devfile, nodedev=None):
def check_version(conn, version):
# pylint: disable=protected-access
if conn.support._check_version(version):
return

View File

@ -811,7 +811,6 @@ def testDetailsXMLEditorSourceviewFallback(app):
app.open(xmleditor_enabled=True)
win = app.manager_open_details("test-clone-simple")
finish = win.find("config-apply")
xmleditor = win.find("XML editor")
# Do standard xmleditor tests
lib.utils.test_xmleditor_interactions(app, win, finish)

View File

@ -305,7 +305,7 @@ class DeviceDisk(Device):
"""
Return a list of lists of VM names that are using the passed paths.
When handling a list of paths, this method is faster than calling
path_in_use_by() seperately as it takes time to call conn.fetch_all_vols().
path_in_use_by() separately as it takes time to call conn.fetch_all_vols().
:param conn: virConnect to check VMs
:param paths: Paths to check for