diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-03-31 23:50:31 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-03-31 23:50:31 (GMT) |
commit | 6af6d264e27e981beb63916e3a92a8aa1738d36a (patch) | |
tree | 107b393ff4fcf87b4cb56d95c45a60e2ebbb1e3c /Lib/test/test_wait4.py | |
parent | a21e4ca3c6dc00b2825e2bb4e77a4aa76d8485f0 (diff) | |
download | cpython-6af6d264e27e981beb63916e3a92a8aa1738d36a.zip cpython-6af6d264e27e981beb63916e3a92a8aa1738d36a.tar.gz cpython-6af6d264e27e981beb63916e3a92a8aa1738d36a.tar.bz2 |
Merged revisions 70930 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70930 | r.david.murray | 2009-03-31 19:45:39 -0400 (Tue, 31 Mar 2009) | 3 lines
Fix Windows test skip error revealed by buildbot. Also a comment spelling
correction in a previously fixed test.
........
Diffstat (limited to 'Lib/test/test_wait4.py')
-rw-r--r-- | Lib/test/test_wait4.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Lib/test/test_wait4.py b/Lib/test/test_wait4.py index 8c6e4a3..cdcd060 100644 --- a/Lib/test/test_wait4.py +++ b/Lib/test/test_wait4.py @@ -4,17 +4,12 @@ import os import time from test.fork_wait import ForkWait -from test.support import run_unittest, reap_children +from test.support import run_unittest, reap_children, get_attribute -try: - os.fork -except AttributeError: - raise unittest.SkipTest("os.fork not defined -- skipping test_wait4") +# If either of these do not exist, skip this test. +get_attribute(os, 'fork') +get_attribute(os, 'wait4') -try: - os.wait4 -except AttributeError: - raise unittest.SkipTest("os.wait4 not defined -- skipping test_wait4") class Wait4Test(ForkWait): def wait_impl(self, cpid): |