Changeset 71963 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Apr 22, 2018 1:12:48 PM (7 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/common/utils.py
r71233 r71963 328 328 if offComma < 0: 329 329 return open(sFile, sMode + 'N'); 330 return open(sFile, sMode[:offComma] + 'N' + sMode[offComma:]); 330 return open(sFile, sMode[:offComma] + 'N' + sMode[offComma:]); # pylint: disable=bad-open-mode 331 331 332 332 # Just in case. -
trunk/src/VBox/ValidationKit/tests/api/tdMoveMedium1.py
r71115 r71963 119 119 continue 120 120 (asExts, aTypes) = oDskFmt.describeFileExtensions() 121 for i in range(0, len(asExts)): 121 for i in range(0, len(asExts)): #pylint: disable=consider-using-enumerate 122 122 if aTypes[i] is vboxcon.DeviceType_HardDisk: 123 123 sExt = '.' + asExts[i] -
trunk/src/VBox/ValidationKit/tests/api/tdMoveVM1.py
r71729 r71963 97 97 continue 98 98 (asExts, aTypes) = oDskFmt.describeFileExtensions() 99 for i in range(0, len(asExts)): 99 for i in range(0, len(asExts)): #pylint: disable=consider-using-enumerate 100 100 if aTypes[i] is vboxcon.DeviceType_HardDisk: 101 101 sExt = '.' + asExts[i] … … 180 180 if key == 'StandardImage' or key == 'ISOImage' or key == 'FloppyImage': 181 181 aReferences = dsReferenceFiles[key] 182 if len (aReferences) > 0:182 if aReferences: 183 183 aoMediumAttachments = oMachine.getMediumAttachmentsOfController(value) 184 184 for oAttachment in aoMediumAttachments: … … 187 187 elif key == 'SnapshotFile': 188 188 aReferences = dsReferenceFiles[key] 189 if len (aReferences) > 0:189 if aReferences: 190 190 aActuals = self.__getSnapshotsFiles(oMachine) 191 191 … … 193 193 elif key == 'SettingsFile': 194 194 aReferences = dsReferenceFiles[key] 195 if len (aReferences) > 0:195 if aReferences: 196 196 aActuals.add(oMachine.settingsFilePath) 197 197 … … 199 199 elif key == 'SavedStateFile': 200 200 aReferences = dsReferenceFiles[key] 201 if len (aReferences) > 0:201 if aReferences: 202 202 aActuals = self.__getStatesFiles(oMachine) 203 203 … … 205 205 elif key == 'LogFile': 206 206 aReferences = dsReferenceFiles[key] 207 if len (aReferences) > 0:207 if aReferences: 208 208 aActuals = self.__getLogFiles(oMachine) 209 209 210 if len(aActuals) > 0:210 if aActuals: 211 211 reporter.log('Check %s' % (key)) 212 212 intersection = aReferences.intersection(aActuals)
Note:
See TracChangeset
for help on using the changeset viewer.