homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pablogsal, serhiy.storchaka, vstinner, zach.ware
Date 2019年06月26日.23:39:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561592366.23.0.963253712793.issue37421@roundup.psfhosted.org>
In-reply-to
Content
Using PR 14415, the following test of test_multiprocessing_spawn emits a false alarm because multiprocessing use "Finalizer" objects which are only finalized "later":
test.test_multiprocessing_spawn.WithManagerTestMyManager.test_mymanager_context_prestarted
Workaround, call explicitly _run_finalizers():
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index eef262d723..bfecbab9ee 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -5651,6 +5651,7 @@ def install_tests_in_module_dict(remote_globs, start_method):
 if need_sleep:
 time.sleep(0.5)
 multiprocessing.process._cleanup()
+ multiprocessing.util._run_finalizers()
 test.support.gc_collect()
 
 remote_globs['setUpModule'] = setUpModule
History
Date User Action Args
2019年06月26日 23:39:26vstinnersetrecipients: + vstinner, zach.ware, serhiy.storchaka, pablogsal
2019年06月26日 23:39:26vstinnersetmessageid: <1561592366.23.0.963253712793.issue37421@roundup.psfhosted.org>
2019年06月26日 23:39:26vstinnerlinkissue37421 messages
2019年06月26日 23:39:26vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /