This commit is contained in:
Georg Brandl 2008-02-05 21:00:53 +00:00
parent db02844c38
commit f01fe6915b
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@ def bind_port(sock, host='', preferred_port=54321):
(err, msg) = e.args
if err != errno.EADDRINUSE:
raise
print(' WARNING: failed to listen on port %d, trying another' %
(port, file=sys.__stderr__))
print(' WARNING: failed to listen on port %d, ' % port +
'trying another', file=sys.__stderr__)
raise TestFailed('unable to find port to listen on')
FUZZ = 1e-6