VirtualBox

Ignore:
Timestamp:
Nov 24, 2022 11:46:15 AM (2 years ago)
Author:
vboxsync
Message:

Validation Kit: Fixed lots of warnings, based on pylint 2.12.2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/schedulerbase.py

    r96407 r97673  
    108108        # Generate a testcase lookup dictionary for use when working on
    109109        # argument variations.
    110         self.dTestCases         = dict();
     110        self.dTestCases         = {};
    111111        for oTestCase in self.aoTestCases:
    112112            self.dTestCases[oTestCase.idTestCase] = oTestCase;
     
    114114
    115115        # Generate a testgroup lookup dictionary.
    116         self.dTestGroups        = dict();
     116        self.dTestGroups        = {};
    117117        for oTestGroup in self.aoTestGroups:
    118118            self.dTestGroups[oTestGroup.idTestGroup] = oTestGroup;
     
    125125            # Prep the test groups.
    126126            for oTestGroup in self.aoTestGroups:
    127                 oTestGroup.aoTestCases = list();
    128                 oTestGroup.dTestCases  = dict();
     127                oTestGroup.aoTestCases = [];
     128                oTestGroup.dTestCases  = {};
    129129
    130130            # Link testcases to their group, both directions. Prep testcases for
     
    139139                oTestGroup.aoTestCases.append(oTestCase);
    140140                oTestCase.oTestGroup       = oTestGroup;
    141                 oTestCase.aoArgsVariations = list();
     141                oTestCase.aoArgsVariations = [];
    142142
    143143            # Associate testcase argument variations with their testcases (group)
     
    177177        Returns array of errors (see SchedulderBase.recreateQueue()).
    178178        """
    179         aoErrors = list();
     179        aoErrors = [];
    180180        for oTestGroup in self.aoTestGroups:
    181181            idPreReq = oTestGroup.idTestGroupPreReq;
    182182            if idPreReq is None:
    183                 oTestGroup.aidTestGroupPreReqs = list();
     183                oTestGroup.aidTestGroupPreReqs = [];
    184184                continue;
    185185
     
    214214        Returns array of errors (see SchedulderBase.recreateQueue()).
    215215        """
    216         aoErrors = list();
     216        aoErrors = [];
    217217        for oTestGroup in self.aoTestGroups:
    218218            for oTestCase in oTestGroup.aoTestCases:
     
    461461                self._fBlacklisted      = None if fMaybeBlacklisted is True else False;
    462462                self.fRemoved           = False;
    463                 self._dPreReqDecisions  = dict();
     463                self._dPreReqDecisions  = {};
    464464
    465465            def remove(self):
     
    531531        self._tsSecStart    = tsSecStart if tsSecStart is not None else utils.timestampSecond();
    532532        self.oBuildCache    = self.BuildCache();
    533         self.dTestGroupMembers = dict();
     533        self.dTestGroupMembers = {};
    534534
    535535    @staticmethod
     
    634634            # little for gang gathering).
    635635            #
    636             aoItems = list();
     636            aoItems = [];
    637637            if not oData.oSchedGroup.fEnabled:
    638638                self.msgInfo('Disabled.');
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