summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_multiprocessing.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-04-30 23:20:15 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-04-30 23:20:15 (GMT)
commit043bad00bcab7f3806e776f9402c776963536495 (patch)
treeb9e827e3f0100636a290f0bd65fe755308a98070 /Lib/test/test_multiprocessing.py
parentdf700f079069b16f2737dcd3cd75018fe8465e3f (diff)
downloadcpython-043bad00bcab7f3806e776f9402c776963536495.zip
cpython-043bad00bcab7f3806e776f9402c776963536495.tar.gz
cpython-043bad00bcab7f3806e776f9402c776963536495.tar.bz2
Merged revisions 80669 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80669 | antoine.pitrou | 2010-05-01 01:08:48 +0200 (sam., 01 mai 2010) | 4 lines Issue #8576: Remove use of find_unused_port() in test_smtplib and test_multiprocessing. Patch by Paul Moore. ........
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
-rw-r--r--Lib/test/test_multiprocessing.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index f9d02ed..96df502 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -1256,9 +1256,9 @@ class _TestManagerRestart(BaseTestCase):
def test_rapid_restart(self):
authkey = os.urandom(32)
- port = test.support.find_unused_port()
manager = QueueManager(
- address=('localhost', port), authkey=authkey, serializer=SERIALIZER)
+ address=('localhost', 0), authkey=authkey, serializer=SERIALIZER)
+ addr = manager.get_server().address
manager.start()
p = self.Process(target=self._putter, args=(manager.address, authkey))
@@ -1268,7 +1268,7 @@ class _TestManagerRestart(BaseTestCase):
del queue
manager.shutdown()
manager = QueueManager(
- address=('localhost', port), authkey=authkey, serializer=SERIALIZER)
+ address=addr, authkey=authkey, serializer=SERIALIZER)
manager.start()
manager.shutdown()