diff options
author | Guido van Rossum <guido@python.org> | 2007-05-09 23:43:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-09 23:43:17 (GMT) |
commit | e2c8f2d5817fe530a873248bb5d82dcaa7d0f57e (patch) | |
tree | a5920e9acf33c72f42679f1d595044035ff1eeb5 /Lib/test/test_support.py | |
parent | 7fe7d1ac4da9e10af39ed0736c141c39b4cbb944 (diff) | |
download | cpython-e2c8f2d5817fe530a873248bb5d82dcaa7d0f57e.zip cpython-e2c8f2d5817fe530a873248bb5d82dcaa7d0f57e.tar.gz cpython-e2c8f2d5817fe530a873248bb5d82dcaa7d0f57e.tar.bz2 |
Fix code depending on exception unpacking.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r-- | Lib/test/test_support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 57b1db3..7cbee0a 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -106,7 +106,7 @@ def bind_port(sock, host='', preferred_port=54321): sock.bind((host, port)) return port except socket.error as e: - (err, msg) = e + (err, msg) = e.args if err != errno.EADDRINUSE: raise print(' WARNING: failed to listen on port %d, trying another' % port, file=sys.__stderr__) |