summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-03-30 15:30:34 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-03-30 15:30:34 (GMT)
commit5cb104d1b936da539b41eddc21fa56f74909e0b6 (patch)
treecd4dc62150dd5f46c014b7d4bea0d0ab135f070e
parentd1f52606c52d3b378f1028d91b304688e25f8f4b (diff)
downloadcpython-5cb104d1b936da539b41eddc21fa56f74909e0b6.zip
cpython-5cb104d1b936da539b41eddc21fa56f74909e0b6.tar.gz
cpython-5cb104d1b936da539b41eddc21fa56f74909e0b6.tar.bz2
Revert incorrect change.
-rw-r--r--Lib/test/test_fork1.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/test/test_fork1.py b/Lib/test/test_fork1.py
index cfb3a71..dfd5016 100644
--- a/Lib/test/test_fork1.py
+++ b/Lib/test/test_fork1.py
@@ -3,11 +3,14 @@
import os
import time
+import unittest
from test.fork_wait import ForkWait
-from test.test_support import run_unittest, reap_children, import_module
-
-import_module('os.fork')
+from test.test_support import run_unittest, reap_children
+try:
+ os.fork
+except AttributeError:
+ raise unittest.SkipTest, "os.fork not defined -- skipping test_fork1"
class ForkTest(ForkWait):
def wait_impl(self, cpid):