Index: Lib/multiprocessing/process.py =================================================================== --- Lib/multiprocessing/process.py (revision 78621) +++ Lib/multiprocessing/process.py (working copy) @@ -179,7 +179,7 @@ @property def ident(self): ''' - Return indentifier (PID) of process or `None` if it has yet to start + Return identifier (PID) of process or `None` if it has yet to start ''' if self is _current_process: return os.getpid() Index: Lib/test/test_multiprocessing.py =================================================================== --- Lib/test/test_multiprocessing.py (revision 78621) +++ Lib/test/test_multiprocessing.py (working copy) @@ -1071,6 +1071,9 @@ self.assertEqual(res.get(), sqr(j)) # Refill the pool p._repopulate_pool() + # Wait until all workers are alive + while not all(w.is_alive() for w in p._pool): + time.sleep(.01) # Finally, check that the worker pids have changed finalworkerpids = [w.pid for w in p._pool] self.assertNotEqual(sorted(origworkerpids), sorted(finalworkerpids))