mirror of
https://github.com/python/cpython.git
synced 2025-08-29 21:25:01 +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
|
@ -1889,8 +1889,8 @@ class TestFork(unittest.IsolatedAsyncioTestCase):
|
|||
os.write(w, b'LOOP:' + str(id(loop)).encode())
|
||||
except RuntimeError:
|
||||
os.write(w, b'NO LOOP')
|
||||
except:
|
||||
os.write(w, b'ERROR:' + ascii(sys.exc_info()).encode())
|
||||
except BaseException as e:
|
||||
os.write(w, b'ERROR:' + ascii(e).encode())
|
||||
finally:
|
||||
os._exit(0)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue