• Fred Drake's avatar
    Use a constant to specify the number of child threads to create. · dc60ed6e
    Fred Drake authored
    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.
    dc60ed6e
test_fork1.py 1.12 KB