summaryrefslogtreecommitdiff
path: root/Lib/test/test_fork1.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2011-05-23 15:29:24 -0400
committerBarry Warsaw <barry@python.org>2011-05-23 15:29:24 -0400
commit544fb3c1aea093f3be6e0142679c0f01ab316758 (patch)
treead1b5c56a1cd7de261e35819133502b4180278f0 /Lib/test/test_fork1.py
parent51228dcd1c23959cdd68712c8b2507bed4effccf (diff)
parentb5e277ca522d94bdbf1426bfd8c43fee2f8153f3 (diff)
downloadcpython-544fb3c1aea093f3be6e0142679c0f01ab316758.tar.gz
Null merge from 2.6 branch.
Diffstat (limited to 'Lib/test/test_fork1.py')
-rw-r--r--Lib/test/test_fork1.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/Lib/test/test_fork1.py b/Lib/test/test_fork1.py
index 31b4dd8d25..3930667d5c 100644
--- a/Lib/test/test_fork1.py
+++ b/Lib/test/test_fork1.py
@@ -1,21 +1,19 @@
"""This test checks for correct fork() behavior.
"""
-import errno
import imp
import os
import signal
import sys
import time
-import threading
from test.fork_wait import ForkWait
-from test.test_support import TestSkipped, run_unittest, reap_children
+from test.test_support import run_unittest, reap_children, get_attribute, import_module
+threading = import_module('threading')
+
+#Skip test if fork does not exist.
+get_attribute(os, 'fork')
-try:
- os.fork
-except AttributeError:
- raise TestSkipped, "os.fork not defined -- skipping test_fork1"
class ForkTest(ForkWait):
def wait_impl(self, cpid):