summaryrefslogtreecommitdiff
path: root/selftest/format-subunit
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-03-30 14:44:37 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-03-31 02:20:09 +0200
commit9fe4b01ca682b57cf7c79775abacf135d0c87d42 (patch)
tree1122da17c8bb244d402d55bc85d645902e24b6de /selftest/format-subunit
parent6c299d28b56dd237792cc80c15c6169e701b4a97 (diff)
downloadsamba-9fe4b01ca682b57cf7c79775abacf135d0c87d42.tar.gz
samba-9fe4b01ca682b57cf7c79775abacf135d0c87d42.tar.bz2
samba-9fe4b01ca682b57cf7c79775abacf135d0c87d42.zip
selftest: Use boolean types in Python.
Diffstat (limited to 'selftest/format-subunit')
-rwxr-xr-xselftest/format-subunit4
1 files changed, 2 insertions, 2 deletions
diff --git a/selftest/format-subunit b/selftest/format-subunit
index 6d2ceb1047..2ca69c4af1 100755
--- a/selftest/format-subunit
+++ b/selftest/format-subunit
@@ -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: