mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
gh-102799: remove unnecessary calls to sys.exc_info() in tests (#102800)
This commit is contained in:
parent
72186aa637
commit
b3cc11a08e
5 changed files with 124 additions and 124 deletions
|
@ -1649,8 +1649,8 @@ class SizeofTest(unittest.TestCase):
|
|||
check(_ast.AST(), size('P'))
|
||||
try:
|
||||
raise TypeError
|
||||
except TypeError:
|
||||
tb = sys.exc_info()[2]
|
||||
except TypeError as e:
|
||||
tb = e.__traceback__
|
||||
# traceback
|
||||
if tb is not None:
|
||||
check(tb, size('2P2i'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue