Aurelien Larcher
2021-01-08 b5a8497ec9558d0061024ac4b49f445bbe7d1094
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
https://raw.githubusercontent.com/omniosorg/omnios-build/master/build/python37/patches/regrtest-processgroup.patch
 
Running some sub-tests in process groups causes tests to hang - the reason it
not yet known.
Disable the use of process groups for now.
 
diff -wpruN '--exclude=*.orig' a~/Lib/test/libregrtest/runtest_mp.py a/Lib/test/libregrtest/runtest_mp.py
--- a~/Lib/test/libregrtest/runtest_mp.py    1970-01-01 00:00:00
+++ a/Lib/test/libregrtest/runtest_mp.py    1970-01-01 00:00:00
@@ -32,7 +32,8 @@ assert MAIN_PROCESS_TIMEOUT >= PROGRESS_
 # Time to wait until a worker completes: should be immediate
 JOIN_TIMEOUT = 30.0   # seconds
 
-USE_PROCESS_GROUP = (hasattr(os, "setsid") and hasattr(os, "killpg"))
+USE_PROCESS_GROUP = (hasattr(os, "setsid") and hasattr(os, "killpg")
+    and not sys.platform.startswith("sunos"))
 
 
 def must_stop(result, ns):