Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Apr 23, 2020

_TestHeap now creates a new Heap() object for each test run.
Partial backport of commit e4679cd
by Antoine Pitrou.

https://bugs.python.org/issue39932

@vstinner
Copy link
Member Author

On aarch64 RHEL8 Refleaks 3.7 buildbot worker, I can easily reproduce https://bugs.python.org/issue39932 with the following command in a few seconds:

./python -m test test_multiprocessing_fork -R 3:3 -j8 -F -m test.test_multiprocessing_fork.WithProcessesTestHeap.test_heap 

With this change, the test is now reliable: no failure after 56 runs (1 minute).

Fix multiprocessing test_heap(): a new Heap object is now created for each test run. Partial backport of commit e4679cd by Antoine Pitrou.
@vstinner vstinner merged commit 857d573 into python:3.7 Apr 23, 2020
@vstinner vstinner deleted the test_heap37 branch April 23, 2020 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants