code: def test_constructor_exception_handling(self):
      # Bug #1242657
      class F(object):
          def __iter__(self):
              raise KeyboardInterrupt
  
      self.assertRaises(KeyboardInterrupt, list, F())
  
imports: import sys
  from functools import cmp_to_key
  from test import seq_tests
  from test.support import ALWAYS_EQ, NEVER_EQ, Py_C_RECURSION_LIMIT
label_desc: Use image node_id 26 for calling the CommonTest obj's underlying member method code with example usage: obj.test_constructor_exception_handling() without return types