diff options
author | Jeff Lane <jeffrey.lane@canonical.com> | 2020-05-05 13:42:24 -0400 |
---|---|---|
committer | Jeff Lane <jeffrey.lane@canonical.com> | 2020-05-05 13:42:24 -0400 |
commit | 41ef2162929b10f72d8f3330d8b64d566dc8567a (patch) | |
tree | f5187037a087f249c1b33326dc2ae658cf2f916b /bin | |
parent | 63f70ab09a6d2b3fb73b6b0f1bece6d4332057f0 (diff) |
bin/frequency_governors_test, bin/removable_storage_test: address SyntaxWarning errors. lp: #1876965
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/frequency_governors_test | 2 | ||||
-rwxr-xr-x | bin/removable_storage_test | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/frequency_governors_test b/bin/frequency_governors_test index 2b8661e..103f651 100755 --- a/bin/frequency_governors_test +++ b/bin/frequency_governors_test @@ -43,7 +43,7 @@ class CPUScalingTest(object): return None # otherwise self.cpufreqDirectories.append(cpufreqDirectory) - if len(self.cpufreqDirectories) is 0: + if len(self.cpufreqDirectories) == 0: return None # otherwise logging.debug("Located the following CPU Freq Directories:") diff --git a/bin/removable_storage_test b/bin/removable_storage_test index bbace30..1c31b45 100755 --- a/bin/removable_storage_test +++ b/bin/removable_storage_test @@ -249,7 +249,7 @@ class DiskTest(): UDISKS2_BLOCK_INTERFACE in interfaces): # To be an IO candidate there must be a drive object drive = interfaces[UDISKS2_BLOCK_INTERFACE].get('Drive:') - if drive is None or drive is '/': + if drive is None or drive == '/': continue drive_object = udisks_devices[os.path.basename(drive)] |