code: def testHandlerReplacedButCalled(self):
      # Can't use skipIf decorator because the signal handler may have
      # been changed after defining this method.
      if signal.getsignal(signal.SIGINT) == signal.SIG_IGN:
          self.skipTest("test requires SIGINT to not be ignored")
      # If our handler has been replaced (is no longer installed) but is
      # called by the *new* handler, then it isn't safe to delay the
      # SIGINT and we should immediately delegate to the default handler
      unittest.installHandler()
  
      handler = signal.getsignal(signal.SIGINT)
  
      def new_handler(frame, signum):
          handler(frame, signum)
  
      signal.signal(signal.SIGINT, new_handler)
  
      try:
          pid = os.getpid()
          os.kill(pid, signal.SIGINT)
      except KeyboardInterrupt:
          pass
      else:
          self.fail(
              "replaced but delegated handler doesn't raise interrupt"
          )
  
imports: import gc
  import os
  import sys
  import signal
  import weakref
  from cStringIO import StringIO
  import unittest
label_desc: Use image node_id 8 for calling the TestBreak obj's underlying member method code with example usage: obj.testHandlerReplacedButCalled() without return types