summaryrefslogtreecommitdiff
path: root/Lib/test/test_fork1.py
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-03-30 23:05:48 +0000
committerR. David Murray <rdmurray@bitdance.com>2009-03-30 23:05:48 +0000
commitb32788fba343774d8847466dfe2ce339cac13db0 (patch)
tree5db10ee4af7e3d069675fd35865a47ff86e1942d /Lib/test/test_fork1.py
parentae49efaa06c78a58cd469bbd54f915290b381678 (diff)
downloadcpython-b32788fba343774d8847466dfe2ce339cac13db0.tar.gz
Change more tests to use import_module for the modules that
should cause tests to be skipped. Also rename import_function to the more descriptive get_attribute and add a docstring.
Diffstat (limited to 'Lib/test/test_fork1.py')
-rw-r--r--Lib/test/test_fork1.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_fork1.py b/Lib/test/test_fork1.py
index 9306242120..b42304bedb 100644
--- a/Lib/test/test_fork1.py
+++ b/Lib/test/test_fork1.py
@@ -4,10 +4,10 @@
import os
import time
from test.fork_wait import ForkWait
-from test.test_support import run_unittest, reap_children, import_function
+from test.test_support import run_unittest, reap_children, get_attribute
#Skip test if fork does not exist.
-import_function(os, 'fork')
+get_attribute(os, 'fork')
class ForkTest(ForkWait):