]> granicus.if.org Git - python/commit
Use a constant to specify the number of child threads to create.
authorFred Drake <fdrake@acm.org>
Mon, 10 Apr 2000 15:36:39 +0000 (15:36 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 10 Apr 2000 15:36:39 +0000 (15:36 +0000)
commit1a4b593dd67a9c9cbb1560f4c00ac9a63218aca7
treef1cd9208ae7b1c66eb5452f5d437ab93a1e9286f
parent9706486b9fb8d25762095c855c3c2a976dcbf1d3
Use a constant to specify the number of child threads to create.

Instead of assuming that the number process ids of the threads is the
same as the process id of the controlling process, use a copy of the
dictionary and check for changes in the process ids of the threads
from the thread's process ids in the parent process.  This makes the
test make more sense on systems which assign a new pid to each thread
(i.e., Linux).

This doesn't fix the other problems evident with this test on Linux.
Lib/test/test_fork1.py