MCPcopy Index your code
hub / github.com/python/cpython / addUnexpectedSuccess

Method addUnexpectedSuccess

Lib/unittest/result.py:157–159  ·  view source on GitHub ↗

Called when a test was expected to fail, but succeed.

(self, test)

Source from the content-addressed store, hash-verified

155
156 @failfast
157 def addUnexpectedSuccess(self, test):
158 """Called when a test was expected to fail, but succeed."""
159 self.unexpectedSuccesses.append(test)
160
161 def addDuration(self, test, elapsed):
162 """Called when a test finished to run, regardless of its outcome.

Callers 1

testFailFastMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by 1

testFailFastMethod · 0.76