From 5cb104d1b936da539b41eddc21fa56f74909e0b6 Mon Sep 17 00:00:00 2001 From: "R. David Murray" Date: Mon, 30 Mar 2009 15:30:34 +0000 Subject: [PATCH] Revert incorrect change. --- Lib/test/test_fork1.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_fork1.py b/Lib/test/test_fork1.py index cfb3a714178..dfd501665ce 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):