# test errors from bad function callstry:enumerateexcept:print("SKIP")raiseSystemExitdeftest_exc(code,exc):try:exec(code)print("no exception")exceptexc:print("right exception")except:print("wrong exception")# function with keyword args not given a specific keyword argtest_exc("enumerate()",TypeError)