Changeset 65963 in vbox for trunk/src/VBox/ValidationKit/tests/unittests
- Timestamp:
- Mar 7, 2017 10:30:26 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 113789
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/unittests/tdUnitTest1.py
r65236 r65963 346 346 sPathName = 'Path'; 347 347 sPath = os.environ.get(sPathName, '.'); 348 if len(sPath) > 0and sPath[-1] != ';':348 if sPath and sPath[-1] != ';': 349 349 sPath += ';'; 350 350 os.environ[sPathName] = sPath + self.sVBoxInstallRoot + ';'; … … 463 463 try: aiValue = [int(sComp) for sComp in sValue.replace('r', '.').split('.')]; 464 464 except: aiValue = (); 465 if len(aiValue) == 0or len(aiValue) > 4:465 if not aiValue or len(aiValue) > 4: 466 466 reporter.error('Invalid exclusion expression for %s: "%s" [%s]' % (sTest, sSubExpr, dExclList[sTest])); 467 467 return True;
Note:
See TracChangeset
for help on using the changeset viewer.