From 41ef2162929b10f72d8f3330d8b64d566dc8567a Mon Sep 17 00:00:00 2001 From: Jeff Lane Date: Tue, 5 May 2020 13:42:24 -0400 Subject: bin/frequency_governors_test, bin/removable_storage_test: address SyntaxWarning errors. lp: #1876965 --- bin/frequency_governors_test | 2 +- 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)] -- cgit v1.2.3