VirtualBox

Changeset 78973 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Jun 4, 2019 4:41:27 PM (6 years ago)
Author:
vboxsync
Message:

ValKit: Delinting (pylint 2.x).

Location:
trunk/src/VBox/ValidationKit/testdriver
Files:
2 edited

Legend:

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

    r78641 r78973  
    743743    def __init__(self, sName, oTstDrv):
    744744        self.sName              = sName;
    745         self.oTstDrv            = oTstDrv; # type: TestDriverBase
     745        self.oTstDrv            = oTstDrv  # type: TestDriverBase
    746746        self.asRsrcs            = [];
    747747
     
    856856
    857857        # List of sub-test drivers (SubTestDriverBase derivatives).
    858         self.aoSubTstDrvs    = [];          # type: list(SubTestDriverBase)
     858        self.aoSubTstDrvs    = [] # type: list(SubTestDriverBase)
    859859
    860860        # Use the scratch path for temporary files.
  • trunk/src/VBox/ValidationKit/testdriver/reporter.py

    r77507 r78973  
    4949
    5050## test reporter instance
    51 g_oReporter = None;                    # type: ReporterBase
     51g_oReporter = None # type: ReporterBase
    5252g_sReporterName = None;
    5353
     
    117117    def write(self, sText):
    118118        """Writes python log message to our stream."""
    119         if g_oReporter != None:
     119        if g_oReporter is not None:
    120120            sText = sText.rstrip("\r\n");
    121121            #g_oReporter.log(0, 'python: %s' % (sText), utils.getCallerName(), utils.getTimePrefix());
     
    304304
    305305        # safe pop
    306         if len(self.atTests) <= 0:
     306        if not self.atTests:
    307307            self.log(0, 'testDone on empty test stack!', sCaller, sTsPrf);
    308308            return ('internal error', 0);
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