gps pointed out that "== and != work in most cases but its better to use is
and is not as you'll never run into a case where someone's __eq__ or __ne__
method do the wrong thing."

Signed-off-by: Martin J. Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2533 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/unixbench/unixbench.py b/client/tests/unixbench/unixbench.py
index 3ceac0f..81e8fae 100755
--- a/client/tests/unixbench/unixbench.py
+++ b/client/tests/unixbench/unixbench.py
@@ -43,7 +43,7 @@
 
     def cleanup(self):
         # check err string and possible throw
-        if self.err != None:
+        if self.err is not None:
             raise error.TestError(self.err)
 
 
@@ -52,7 +52,7 @@
         if l >= 3 and words[-3:l] == ['no', 'measured', 'results']:
             # found a problem so record it in err string
             key = '_'.join(words[:-3])
-            if self.err == None:
+            if self.err is None:
                 self.err = key
             else:
                 self.err = self.err + " " + key