[Python-checkins] r76840 - in python/trunk: Lib/test/test_multiprocessing.py Misc/NEWS
r.david.murray
python-checkins at python.org
Mon Dec 14 22:57:39 CET 2009
Author: r.david.murray
Date: Mon Dec 14 22:57:39 2009
New Revision: 76840
Log:
Issue #7498: make test_multiprocessing use test_support.find_unused_port
instead of a hard coded port number in test_rapid_restart.
Modified:
python/trunk/Lib/test/test_multiprocessing.py
python/trunk/Misc/NEWS
Modified: python/trunk/Lib/test/test_multiprocessing.py
==============================================================================
--- python/trunk/Lib/test/test_multiprocessing.py (original)
+++ python/trunk/Lib/test/test_multiprocessing.py Mon Dec 14 22:57:39 2009
@@ -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()
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Mon Dec 14 22:57:39 2009
@@ -20,6 +20,7 @@
- Issue #7466: segmentation fault when the garbage collector is called
in the middle of populating a tuple. Patch by Florent Xicluna.
+
Library
-------
@@ -42,6 +43,14 @@
distutils.dist.DistributionMetadata.
+Tests
+-----
+
+- Issue #7498: test_multiprocessing now uses test_support.find_unused_port
+ instead of a hardcoded port number in test_rapid_restart.
+
+
+
What's New in Python 2.7 alpha 1
================================
More information about the Python-checkins
mailing list