VirtualBox

Ignore:
Timestamp:
Feb 10, 2021 12:47:51 PM (4 years ago)
Author:
vboxsync
Message:

Main: bugref:9224: Testcase: fixed pylint issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/storage/tdStorageRawDrive1.py

    r87681 r87683  
    10941094                    if sDictValue == '$':
    10951095                        sDictValue = asAction[sKey];
    1096                     if sDictValue != '*' and sDictValue != sValue:
     1096                    if sDictValue not in ('*', sValue):
    10971097                        return reporter.error("VMDK descriptor has value which was not expected");
    10981098                    continue;
     
    11281128                    return reporter.error("VMDK descriptor has invalid format");
    11291129                sDictValue = asDatabase[sKey];
    1130                 if sDictValue != '*' and sDictValue != sValue:
     1130                if sDictValue not in ('*', sValue):
    11311131                    return reporter.error("VMDK descriptor has value which was not expected");
    11321132                continue;
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