Index: Lib/test/test_multiprocessing.py =================================================================== --- Lib/test/test_multiprocessing.py (revision 76797) +++ Lib/test/test_multiprocessing.py (working copy) @@ -1212,8 +1212,9 @@ def test_rapid_restart(self): authkey = os.urandom(32) + port = test_support.find_unused_port() manager = QueueManager( - address=('localhost', 9999), authkey=authkey, serializer=SERIALIZER) + address=('localhost', port), authkey=authkey, serializer=SERIALIZER) manager.start() p = self.Process(target=self._putter, args=(manager.address, authkey)) @@ -1223,7 +1224,7 @@ del queue manager.shutdown() manager = QueueManager( - address=('localhost', 9999), authkey=authkey, serializer=SERIALIZER) + address=('localhost', port), authkey=authkey, serializer=SERIALIZER) manager.start() manager.shutdown()