Test the argument list, not the tuple of argument tuple.

- Legacy-Id: 5134
This commit is contained in:
Henrik Levkowetz 2012-12-16 18:30:25 +00:00
parent 1ce29c0af4
commit 9d9e2851e0

View file

@ -104,7 +104,7 @@ def run_tests(*args, **kwargs):
if failures:
tfile.write("%s FAILED (failures=%s)\n" % (timestr, failures))
else:
if args:
if list(*args):
tfile.write("%s SUCCESS (tests=%s)\n" % (timestr, repr(list(*args))))
else:
tfile.write("%s OK\n" % (timestr, ))