code: def testSecondInterrupt(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")
      result = unittest.TestResult()
      unittest.installHandler()
      unittest.registerResult(result)
  
      def test(result):
          pid = os.getpid()
          os.kill(pid, signal.SIGINT)
          result.breakCaught = True
          self.assertTrue(result.shouldStop)
          os.kill(pid, signal.SIGINT)
          self.fail("Second KeyboardInterrupt not raised")
  
      try:
          test(result)
      except KeyboardInterrupt:
          pass
      else:
          self.fail("Second KeyboardInterrupt not raised")
      self.assertTrue(result.breakCaught)
  
imports: import gc
  import os
  import sys
  import signal
  import weakref
  from cStringIO import StringIO
  import unittest
label_desc: Use image node_id 6 for calling the TestBreak obj's underlying member method code with example usage: obj.testSecondInterrupt() without return types