Changeset 61828 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Jun 22, 2016 6:50:19 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r61787 r61828 226 226 oAttr = getattr(oNativeComErrorClass, sAttr); 227 227 setattr(ComError, sAttr, oAttr); 228 if type(oAttr) is int:228 if isinstance(oAttr, int): 229 229 ComError.dDecimalToConst[oAttr] = sAttr; 230 230 … … 652 652 reporter.log2('onShowWindow/%s' % (self.sName)); 653 653 return None; 654 655 654 # pylint: enable=C0111,R0913,W0613 656 655 … … 838 837 return True; 839 838 840 # Try dev build first since that's where I'll be using it first.. 841 if True :839 # Try dev build first since that's where I'll be using it first... 840 if True is True: 842 841 try: 843 842 self.oBuild = Build(self, None); … … 910 909 # 911 910 sCandidate = None; 912 for i in range(len(asCandidates)):911 for i, _ in enumerate(asCandidates): 913 912 sCandidate = asCandidates[i]; 914 913 if os.path.isfile(os.path.join(sCandidate, 'VBoxValidationKit.iso')): … … 1554 1553 raise base.InvalidOption('The "--vrdp-base-port" takes an argument'); 1555 1554 try: self.uVrdpBasePort = int(asArgs[iArg]); 1556 except: raise base.InvalidOption('The "--vrdp-base-port" value "%s" is not a valid integer' , asArgs[iArg]);1555 except: raise base.InvalidOption('The "--vrdp-base-port" value "%s" is not a valid integer' % (asArgs[iArg],)); 1557 1556 if self.uVrdpBasePort <= 0 or self.uVrdpBasePort >= 65530: 1558 raise base.InvalidOption('The "--vrdp-base-port" value "%s" is not in the valid range (1..65530)', asArgs[iArg]); 1557 raise base.InvalidOption('The "--vrdp-base-port" value "%s" is not in the valid range (1..65530)' 1558 % (asArgs[iArg],)); 1559 1559 elif asArgs[iArg] == '--vbox-default-bridged-nic': 1560 1560 iArg += 1;
Note:
See TracChangeset
for help on using the changeset viewer.