mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-102799: use sys.exception() instead of sys.exc_info() in tests (#103293)
This commit is contained in:
parent
a44568b80d
commit
482b6eeadc
12 changed files with 68 additions and 71 deletions
|
@ -5097,8 +5097,7 @@ class BasicConfigTest(unittest.TestCase):
|
|||
message = []
|
||||
|
||||
def dummy_handle_error(record):
|
||||
_, v, _ = sys.exc_info()
|
||||
message.append(str(v))
|
||||
message.append(str(sys.exception()))
|
||||
|
||||
handler.handleError = dummy_handle_error
|
||||
logging.debug('The Øresund Bridge joins Copenhagen to Malmö')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue