summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_fork1.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_fork1.py b/Lib/test/test_fork1.py
index 0d20fb3..67e30df 100644
--- a/Lib/test/test_fork1.py
+++ b/Lib/test/test_fork1.py
@@ -10,6 +10,11 @@ active threads survive in the child after a fork(); this is an error.
import os, sys, time, thread
+try:
+ os.fork
+except AttributeError:
+ raise ImportError, "os.fork not defined -- skipping test_fork1"
+
LONGSLEEP = 2
SHORTSLEEP = 0.5