Kaydet (Commit) 49517821 authored tarafından Guido van Rossum's avatar Guido van Rossum

Raise ImportError when os.fork does not exist.

üst 42c29aae
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment