selftest: Use boolean types in Python.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 30 Mar 2010 12:44:37 +0000 (14:44 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 31 Mar 2010 00:20:09 +0000 (02:20 +0200)
selftest/format-subunit

index 6d2ceb10478cf623df727bcb74a2b930e82db19a..2ca69c4af1cb0edebed5a6b1444f39bed5ae88c7 100755 (executable)
@@ -81,7 +81,7 @@ class PlainFormatter(object):
 
     def end_testsuite(self, name, result, reason):
         out = ""
-        unexpected = 0
+        unexpected = False
 
         if not name in self.test_output:
             print "no output for name[%s]" % name
@@ -93,7 +93,7 @@ class PlainFormatter(object):
             self.suitesfailed.append(name)
             if self.immediate and not self.verbose:
                 out += self.test_output[name]
-            unexpected = 1
+            unexpected = True
 
         if not self.immediate:
             if not unexpected: