commit | 495178217854e2bea9d8528d3d2a04bcf9a6078b | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu May 04 00:36:42 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu May 04 00:36:42 2000 +0000 |
tree | db50cb108779c5cbe7e2e818ad15be64f9684699 | |
parent | 42c29aaeb56896edc856f021fa09fa83a5553356 [diff] |
Raise ImportError when os.fork does not exist.
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 @@ import os, sys, time, thread +try: + os.fork +except AttributeError: + raise ImportError, "os.fork not defined -- skipping test_fork1" + LONGSLEEP = 2 SHORTSLEEP = 0.5