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.
This commit is contained in:
R. David Murray 2009-03-30 23:05:48 +00:00
parent dc340eedaa
commit 3db8a3432b
17 changed files with 53 additions and 43 deletions

View file

@ -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):