Skip to content

Commit 2713535

Browse files
peglerdnozay
authored andcommitted
support empty skip reason
1 parent b3673c6 commit 2713535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmlrunner/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(self, test_result, test_method, outcome=SUCCESS, err=None, subTest=
9696
self.outcome = outcome
9797
self.elapsed_time = 0
9898
self.timestamp = datetime.datetime.min.replace(microsecond=0).isoformat()
99-
if err:
99+
if err is not None:
100100
if self.outcome != _TestInfo.SKIP:
101101
self.test_exception_name = safe_unicode(err[0].__name__)
102102
self.test_exception_message = safe_unicode(err[1])

0 commit comments

Comments
 (0)