diff options
| author | R. David Murray <rdmurray@bitdance.com> | 2009-12-14 22:57:04 (GMT) |
|---|---|---|
| committer | R. David Murray <rdmurray@bitdance.com> | 2009-12-14 22:57:04 (GMT) |
| commit | c009b445955ee3d6c5fc7faa4c014bd37656fb61 (patch) | |
| tree | 1da871c95fbc54f3313da28b6adebb452be113c2 | |
| parent | c8428d3dce850a54eb49298ceabf95fc3c00867d (diff) | |
| download | cpython-c009b445955ee3d6c5fc7faa4c014bd37656fb61.zip cpython-c009b445955ee3d6c5fc7faa4c014bd37656fb61.tar.gz cpython-c009b445955ee3d6c5fc7faa4c014bd37656fb61.tar.bz2 | |
Merged revisions 76843 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r76843 | r.david.murray | 2009-12-14 17:45:15 -0500 (Mon, 14 Dec 2009) | 10 lines
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.
........
................
| -rw-r--r-- | Lib/test/test_multiprocessing.py | 5 | ||||
| -rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 18066ba..d3620b7 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -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() @@ -214,6 +214,9 @@ Extension Modules Tests ----- +- Issue #7498: test_multiprocessing now uses test.support.find_unused_port + instead of a hardcoded port number in test_rapid_restart. + - Issue #7431: use TESTFN in test_linecache instead of trying to create a file in the Lib/test directory, which might be read-only for the user running the tests. |
