mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merged revisions 76840 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76840 | r.david.murray | 2009-12-14 16:57:39 -0500 (Mon, 14 Dec 2009) | 3 lines Issue #7498: make test_multiprocessing use test_support.find_unused_port instead of a hard coded port number in test_rapid_restart. ........
This commit is contained in:
parent
77b338be20
commit
8339623d12
2 changed files with 6 additions and 2 deletions
|
@ -1213,8 +1213,9 @@ class _TestManagerRestart(BaseTestCase):
|
|||
|
||||
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))
|
||||
|
@ -1224,7 +1225,7 @@ class _TestManagerRestart(BaseTestCase):
|
|||
del queue
|
||||
manager.shutdown()
|
||||
manager = QueueManager(
|
||||
address=('localhost', 9999), authkey=authkey, serializer=SERIALIZER)
|
||||
address=('localhost', port), authkey=authkey, serializer=SERIALIZER)
|
||||
manager.start()
|
||||
manager.shutdown()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue