summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_fork1.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_fork1.py b/Lib/test/test_fork1.py
index 8804392..4fd2662 100644
--- a/Lib/test/test_fork1.py
+++ b/Lib/test/test_fork1.py
@@ -6,12 +6,21 @@ child after a fork().
On some systems (e.g. Solaris without posix threads) we find that all
active threads survive in the child after a fork(); this is an error.
+On BeOS, you CANNOT mix threads and fork(), the behaviour is undefined.
+That's OK, fork() is a grotesque hack anyway. ;-) [cjh]
+
"""
import os, sys, time, thread
from test_support import TestSkipped
try:
+ if os.uname()[0] == "BeOS":
+ raise TestSkipped, "can't mix os.fork with threads on BeOS"
+except AttributeError:
+ pass
+
+try:
os.fork
except AttributeError:
raise TestSkipped, "os.fork not defined -- skipping test_fork1"