You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(My initial messages contained a mistaken idea based on a mis-remembering the details sys.last values and exceptions.)
If an exception is not caught and a traceback is printed, sys.last_type, sys.last_value, and sys.last_traceback are set. When an exception is caught, the last_ x values are not touched, but the same are available by calling sys.exc_info. Stackview accessed all 3 sys.last_x values, but they are not normally set when testing because exception are caught. The test sets them from a sys.exc_info after catching an exception.
Activity
terryjreedy commentedon Jun 22, 2018
New changeset bcd3a1a by Terry Jan Reedy in branch 'master':
bpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)
bcd3a1a
miss-islington commentedon Jun 22, 2018
New changeset d554414 by Miss Islington (bot) in branch '3.7':
bpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)
d554414
miss-islington commentedon Jun 22, 2018
New changeset a0622f1 by Miss Islington (bot) in branch '3.6':
bpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)
a0622f1
terryjreedy commentedon Jun 22, 2018
(My initial messages contained a mistaken idea based on a mis-remembering the details sys.last values and exceptions.)
If an exception is not caught and a traceback is printed, sys.last_type, sys.last_value, and sys.last_traceback are set. When an exception is caught, the last_ x values are not touched, but the same are available by calling sys.exc_info. Stackview accessed all 3 sys.last_x values, but they are not normally set when testing because exception are caught. The test sets them from a sys.exc_info after catching an exception.
[-]IDLE: stackbrowser.Stackbrowser should accept exception.[/-][+]IDLE: Test stackbrowser.Stackbrowser[/+]