diff options
author | Moshe Zadka <moshez@math.huji.ac.il> | 2001-01-30 18:35:32 (GMT) |
---|---|---|
committer | Moshe Zadka <moshez@math.huji.ac.il> | 2001-01-30 18:35:32 (GMT) |
commit | fc3fc337d04df860de3c1a3a0c1f2d53ffc21c09 (patch) | |
tree | d272ae8830367b8707df674a7647983a83bfbda6 /Lib/test/test_fork1.py | |
parent | 87eb4f8bb35be113017fcb8e703677a0a056234d (diff) | |
download | cpython-fc3fc337d04df860de3c1a3a0c1f2d53ffc21c09.zip cpython-fc3fc337d04df860de3c1a3a0c1f2d53ffc21c09.tar.gz cpython-fc3fc337d04df860de3c1a3a0c1f2d53ffc21c09.tar.bz2 |
Checking in patch #103478 -- makes popen2 and fork1 tested on BeOS.
Tested for not breaking builds on Linux.
Diffstat (limited to 'Lib/test/test_fork1.py')
-rw-r--r-- | Lib/test/test_fork1.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Lib/test/test_fork1.py b/Lib/test/test_fork1.py index bd3e977..de9f7a9 100644 --- a/Lib/test/test_fork1.py +++ b/Lib/test/test_fork1.py @@ -6,21 +6,14 @@ 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] - +While BeOS doesn't officially support fork and native threading in +the same application, the present example should work just fine. DC """ import os, sys, time, thread from test_support import verify, verbose, 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" |