VirtualBox

Ignore:
Timestamp:
Mar 7, 2017 10:30:26 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113789
Message:

ValidationKit/tests: pylint 2.0.0 fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/unittests/tdUnitTest1.py

    r65236 r65963  
    346346                sPathName = 'Path';
    347347            sPath = os.environ.get(sPathName, '.');
    348             if len(sPath) > 0 and sPath[-1] != ';':
     348            if sPath and sPath[-1] != ';':
    349349                sPath += ';';
    350350            os.environ[sPathName] = sPath + self.sVBoxInstallRoot + ';';
     
    463463                    try:    aiValue = [int(sComp) for sComp in sValue.replace('r', '.').split('.')];
    464464                    except: aiValue = ();
    465                     if len(aiValue) == 0 or len(aiValue) > 4:
     465                    if not aiValue or len(aiValue) > 4:
    466466                        reporter.error('Invalid exclusion expression for %s: "%s" [%s]' % (sTest, sSubExpr, dExclList[sTest]));
    467467                        return True;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette