class_docstr: Holder for test result information.
  
  Test results are automatically managed by the TestCase and TestSuite
  classes, and do not need to be explicitly manipulated by writers of tests.
  
  Each instance holds the total number of tests run, and collections of
  failures and errors that occurred among those test runs. The collections
  contain tuples of (testcase, exceptioninfo), where exceptioninfo is the
  formatted traceback of the error that occurred.
docstr: Called when a test was expected to fail, but succeed.
docstr_tok: ["Called","when","a","test","was","expected","to","fail",",","but","succeed","."]
code: def addUnexpectedSuccess(self, test):
      """Called when a test was expected to fail, but succeed."""
      self.unexpectedSuccesses.append(test)
  
imports: import io
  import sys
  import traceback
  from .None import util
  from functools import wraps
label_desc: Use image node_id 15 for calling the TestResult obj's underlying member method code with example usage: obj.addUnexpectedSuccess(test) without return types