diff options
author | Fred Drake <fdrake@acm.org> | 2000-08-15 18:52:33 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-08-15 18:52:33 (GMT) |
commit | 56221a7cfa8f361f4310b63b74091766c50dd7f8 (patch) | |
tree | fa463c682b2f773a8b2cc5f27aa936a8853d1a89 /Lib | |
parent | d3415791783dcdf6f6dedd2a878ea0e09aa39fc9 (diff) | |
download | cpython-56221a7cfa8f361f4310b63b74091766c50dd7f8.zip cpython-56221a7cfa8f361f4310b63b74091766c50dd7f8.tar.gz cpython-56221a7cfa8f361f4310b63b74091766c50dd7f8.tar.bz2 |
Chris Herborth <chrish@pobox.com>:
Minor updates for BeOS R5.
Use of OSError in test.test_fork1 changed to TestSkipped, with corresponding
change in BeOS/README (by Fred).
This closes SourceForge patch #100978.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_fork1.py | 9 |
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" |