diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-03-18 07:19:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-18 07:19:38 (GMT) |
commit | b3cc11a08e1e9121ddba3b9afb9fae032e86f449 (patch) | |
tree | e4993f932a173d482f06e797b9587a33aa7f0491 /Lib/test/test_asyncio | |
parent | 72186aa637bc88cd5f5e234803af64acab25994c (diff) | |
download | cpython-b3cc11a08e1e9121ddba3b9afb9fae032e86f449.zip cpython-b3cc11a08e1e9121ddba3b9afb9fae032e86f449.tar.gz cpython-b3cc11a08e1e9121ddba3b9afb9fae032e86f449.tar.bz2 |
gh-102799: remove unnecessary calls to sys.exc_info() in tests (#102800)
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_unix_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py index 33d0ea1..9699947 100644 --- a/Lib/test/test_asyncio/test_unix_events.py +++ b/Lib/test/test_asyncio/test_unix_events.py @@ -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: |