selftest: Use boolean types in Python.
[ira/wip.git] / 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: