bpo-46411: Remove unnecessary calls to sys.exc_info() in tests (GH-30638)

This commit is contained in:
Irit Katriel 2022-01-18 07:05:16 +00:00 committed by GitHub
parent c47c9e6589
commit a287b31bcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 16 deletions

View file

@ -12,8 +12,8 @@ import unittest
def get_tb():
try:
raise OSError()
except:
return sys.exc_info()[2]
except OSError as e:
return e.__traceback__
class Context: