Refs #20461 -- Made tblib optional for a passing test run.
This was the original intent.
This commit is contained in:
parent
c97b755a1c
commit
968b02f8f0
|
@ -171,7 +171,14 @@ failure and get a correct traceback.
|
||||||
self.events.append(('addSkip', self.test_index, reason))
|
self.events.append(('addSkip', self.test_index, reason))
|
||||||
|
|
||||||
def addExpectedFailure(self, test, err):
|
def addExpectedFailure(self, test, err):
|
||||||
self.check_pickleable(test, err)
|
# If tblib isn't installed, pickling the traceback will always fail.
|
||||||
|
# However we don't want tblib to be required for running the tests
|
||||||
|
# when they pass or fail as expected. Drop the traceback when an
|
||||||
|
# expected failure occurs.
|
||||||
|
if tblib is None:
|
||||||
|
err = err[0], err[1], None
|
||||||
|
else:
|
||||||
|
self.check_pickleable(test, err)
|
||||||
self.events.append(('addExpectedFailure', self.test_index, err))
|
self.events.append(('addExpectedFailure', self.test_index, err))
|
||||||
|
|
||||||
def addUnexpectedSuccess(self, test):
|
def addUnexpectedSuccess(self, test):
|
||||||
|
|
Loading…
Reference in New Issue