Not specifying a reason means addSkip() is passed an empty string rather
than None. As a result, this condition was never hit, and the call to
_addOutcome() had an incorrect parameter.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
def addSkip(self, test, reason=None):
"""Report a skipped test."""
- if reason is None:
- self._addOutcome("skip", test, error=None)
+ if not reason:
+ self._addOutcome("skip", test, error_permitted=None)
else:
self._stream.write("skip: %s [\n" % test.id())
self._stream.write("%s\n" % reason)