[Python-3000-checkins] r55218 - python/branches/py3k-struni/Lib/test/test_support.py

guido.van.rossum python-3000-checkins at python.org
Thu May 10 01:43:20 CEST 2007


Author: guido.van.rossum
Date: Thu May 10 01:43:17 2007
New Revision: 55218

Modified:
   python/branches/py3k-struni/Lib/test/test_support.py
Log:
Fix code depending on exception unpacking.


Modified: python/branches/py3k-struni/Lib/test/test_support.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_support.py	(original)
+++ python/branches/py3k-struni/Lib/test/test_support.py	Thu May 10 01:43:17 2007
@@ -106,7 +106,7 @@
             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__)


More information about the Python-3000-checkins mailing list