summaryrefslogtreecommitdiff
path: root/Lib/test/test_wait4.py
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-03-31 23:45:39 +0000
committerR. David Murray <rdmurray@bitdance.com>2009-03-31 23:45:39 +0000
commit840ac926c572caa7656449aa1e815660e69f7713 (patch)
tree1a0515a7ce815b82ebb402b530a7172f965ed523 /Lib/test/test_wait4.py
parenta08867d8a147201cd10f580e87b126e034770428 (diff)
downloadcpython-git-840ac926c572caa7656449aa1e815660e69f7713.tar.gz
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.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/Lib/test/test_wait4.py b/Lib/test/test_wait4.py
index 60b89e8439..d04a11bde1 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.test_support import run_unittest, reap_children
+from test.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):