]> granicus.if.org Git - python/commitdiff
Fix.
authorGeorg Brandl <georg@python.org>
Tue, 5 Feb 2008 21:00:53 +0000 (21:00 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 5 Feb 2008 21:00:53 +0000 (21:00 +0000)
Lib/test/test_support.py

index 17307c8d447ae1f7aa62cf4785e8dc06761a80f3..0fd5d88547f0676cdd216dbcfde713a7dea5c06b 100644 (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