STINNER Victor added the comment:
Antoine Pitrou: "I'm not able to reproduce. Can you try again with latest
master?"
Oh, maybe I found why... There is a tearDownModule() function which hides bugs.
Try following change:
diff --git a/Lib/test/_test_multiprocessing.py
b/Lib/test/_test_multiprocessing.py
index 88e2eb3..ae77468 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -4432,8 +4432,8 @@ def install_tests_in_module_dict(remote_globs,
start_method):
def tearDownModule():
multiprocessing.set_start_method(old_start_method[0], force=True)
# pause a bit so we don't get warning about dangling threads/processes
- time.sleep(0.5)
- multiprocessing.process._cleanup()
+ # time.sleep(0.5)
+ # multiprocessing.process._cleanup()
gc.collect()
tmp = set(multiprocessing.process._dangling) - set(dangling[0])
if tmp:
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue26762>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com