mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_value,sys.last_traceback (#102779)
This commit is contained in:
parent
039714d00f
commit
e1e9bab006
22 changed files with 103 additions and 36 deletions
|
@ -19,6 +19,7 @@ class StackBrowserTest(unittest.TestCase):
|
|||
except NameError:
|
||||
svs.last_type, svs.last_value, svs.last_traceback = (
|
||||
sys.exc_info())
|
||||
svs.last_exc = svs.last_value
|
||||
|
||||
requires('gui')
|
||||
cls.root = Tk()
|
||||
|
@ -27,7 +28,7 @@ class StackBrowserTest(unittest.TestCase):
|
|||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
svs = stackviewer.sys
|
||||
del svs.last_traceback, svs.last_type, svs.last_value
|
||||
del svs.last_exc, svs.last_traceback, svs.last_type, svs.last_value
|
||||
|
||||
cls.root.update_idletasks()
|
||||
## for id in cls.root.tk.call('after', 'info'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue