• Victor Stinner's avatar
    bpo-33735: Fix test_multiprocessing random failure (GH-8059) · 23401fb9
    Victor Stinner authored
    When hunting memory leaks using -R 3:3, test_imap_unordered() of
    test_multiprocessing leaks randomly a few memory blocks. It is a
    false alarm: when testing using -R 3:20 for example, no leak is
    detected.
    
    Modify test_imap_unordered() to be closer to test_imap():
    
    * Only test 10 numbers instead of 1000: it's a pool of 4 processes, so
      10 is enough to test at least one number per process
    * Use chunksize=100 instead of chunksize=53 to mimick test_imap()
    23401fb9
_test_multiprocessing.py 150 KB