From: R. David Murray Date: Mon, 30 Mar 2009 15:30:34 +0000 (+0000) Subject: Revert incorrect change. X-Git-Tag: v2.7a1~1746 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5cb104d1b936da539b41eddc21fa56f74909e0b6;p=python Revert incorrect change. --- diff --git a/Lib/test/test_fork1.py b/Lib/test/test_fork1.py index cfb3a71417..dfd501665c 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):