diff options
author | Oleg Iarygin <oleg@arhadthedev.net> | 2022-03-30 15:28:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 15:28:20 +0300 |
commit | a03a09e068435f47d02649dda93988dc44ffaaf1 (patch) | |
tree | 864a523218399cc068ec68567359e616740bac9b /Lib/test/support/socket_helper.py | |
parent | f08a191882f75bb79d42a49039892105b2212fb9 (diff) | |
download | cpython-a03a09e068435f47d02649dda93988dc44ffaaf1.tar.gz cpython-a03a09e068435f47d02649dda93988dc44ffaaf1.zip |
Replace with_traceback() with exception chaining and reraising (GH-32074)
Diffstat (limited to 'Lib/test/support/socket_helper.py')
-rw-r--r-- | Lib/test/support/socket_helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/socket_helper.py b/Lib/test/support/socket_helper.py index b51677383eb..0ee7a5d69a1 100644 --- a/Lib/test/support/socket_helper.py +++ b/Lib/test/support/socket_helper.py @@ -256,7 +256,7 @@ def transient_internet(resource_name, *, timeout=_NOT_SET, errnos=()): err = a[0] # The error can also be wrapped as args[1]: # except socket.error as msg: - # raise OSError('socket error', msg).with_traceback(sys.exc_info()[2]) + # raise OSError('socket error', msg) from msg elif len(a) >= 2 and isinstance(a[1], OSError): err = a[1] else: |