diff options
author | Guido van Rossum <guido@python.org> | 2000-09-01 19:25:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-09-01 19:25:51 (GMT) |
commit | 8d691c842289cf4453f282637765f07113a7cc17 (patch) | |
tree | 3a7819d53d7578cf728d3bcfecba7daebb6981db /Lib/dos-8x3/test_for.py | |
parent | 29201d490511b2af863e07fdf5cb247fc9117c2f (diff) | |
download | cpython-8d691c842289cf4453f282637765f07113a7cc17.zip cpython-8d691c842289cf4453f282637765f07113a7cc17.tar.gz cpython-8d691c842289cf4453f282637765f07113a7cc17.tar.bz2 |
The usual
Diffstat (limited to 'Lib/dos-8x3/test_for.py')
-rw-r--r-- | Lib/dos-8x3/test_for.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Lib/dos-8x3/test_for.py b/Lib/dos-8x3/test_for.py index 67e30df..4fd2662 100644 --- a/Lib/dos-8x3/test_for.py +++ b/Lib/dos-8x3/test_for.py @@ -6,14 +6,24 @@ 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 ImportError, "os.fork not defined -- skipping test_fork1" + raise TestSkipped, "os.fork not defined -- skipping test_fork1" LONGSLEEP = 2 |