VirtualBox

Ignore:
Timestamp:
Jun 11, 2019 11:58:28 AM (5 years ago)
Author:
vboxsync
Message:

ValKit: New pylint version - cleanup in progress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/base.py

    r79067 r79087  
    11# -*- coding: utf-8 -*-
    22# $Id$
    3 # pylint: disable=C0302
     3# pylint: disable=too-many-lines
    44
    55"""
     
    222222        fRc = False;
    223223    else:
    224         fRc = __processSudoKill(uPid, signal.SIGUSR1, fSudo); # pylint: disable=E1101
     224        fRc = __processSudoKill(uPid, signal.SIGUSR1, fSudo); # pylint: disable=no-member
    225225    return fRc;
    226226
     
    246246        fRc = winbase.processKill(uPid);
    247247    else:
    248         fRc = __processSudoKill(uPid, signal.SIGKILL, fSudo); # pylint: disable=E1101
     248        fRc = __processSudoKill(uPid, signal.SIGKILL, fSudo); # pylint: disable=no-member
    249249    return fRc;
    250250
     
    307307
    308308            # ps fails with non-zero exit code if the pid wasn't found.
    309             if iExitCode is not 0:
     309            if iExitCode != 0:
    310310                return False;
    311311            if sCurName is None:
     
    380380    def __del__(self):
    381381        """In case we need it later on."""
    382         pass;
     382        pass;   # pylint: disable=unnecessary-pass
    383383
    384384    def toString(self):
     
    395395    def lockTask(self):
    396396        """ Wrapper around oCv.acquire(). """
    397         if True is True: # change to False for debugging deadlocks.
     397        if True is True: # change to False for debugging deadlocks. # pylint: disable=comparison-with-itself
    398398            self.oCv.acquire();
    399399        else:
     
    600600                    try:
    601601                        (uPid, uStatus) = os.waitpid(self.hWin, 0);
    602                         if uPid == self.hWin or uPid == self.uPid:
     602                        if uPid in (self.hWin, self.uPid,):
    603603                            self.hWin.Detach(); # waitpid closed it, so it's now invalid.
    604604                            self.hWin = None;
     
    613613            else:
    614614                try:
    615                     (uPid, uStatus) = os.waitpid(self.uPid, os.WNOHANG); # pylint: disable=E1101
     615                    (uPid, uStatus) = os.waitpid(self.uPid, os.WNOHANG); # pylint: disable=no-member
    616616                except:
    617617                    reporter.logXcpt();
     
    773773
    774774
    775 class TestDriverBase(object): # pylint: disable=R0902
     775class TestDriverBase(object): # pylint: disable=too-many-instance-attributes
    776776    """
    777777    The base test driver.
     
    16281628
    16291629
    1630     def innerMain(self, asArgs = None): # pylint: disable=R0915
     1630    def innerMain(self, asArgs = None): # pylint: disable=too-many-statements
    16311631        """
    16321632        Exception wrapped main() worker.
     
    17491749
    17501750# The old, deprecated name.
    1751 TestDriver = TestDriverBase; # pylint: disable=C0103
     1751TestDriver = TestDriverBase; # pylint: disable=invalid-name
    17521752
    17531753
     
    17561756#
    17571757
    1758 # pylint: disable=C0111
     1758# pylint: disable=missing-docstring
    17591759class TestDriverBaseTestCase(unittest.TestCase):
    17601760    def setUp(self):
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette