diff options
author | Brett Cannon <brett@python.org> | 2012-11-14 20:16:53 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-11-14 20:16:53 (GMT) |
commit | cd8efa3704bc1aec1338fdc8fc0cfe8ee5bc100e (patch) | |
tree | 48d166a1fad3f85c13b24b0d0a1a42626ff45dce /Lib/test/test_wait3.py | |
parent | 8c5ec0a3af75a6779dad4101d0a9ad421f64fa60 (diff) | |
download | cpython-cd8efa3704bc1aec1338fdc8fc0cfe8ee5bc100e.zip cpython-cd8efa3704bc1aec1338fdc8fc0cfe8ee5bc100e.tar.gz cpython-cd8efa3704bc1aec1338fdc8fc0cfe8ee5bc100e.tar.bz2 |
Clean up the messages used by some tests.
Diffstat (limited to 'Lib/test/test_wait3.py')
-rw-r--r-- | Lib/test/test_wait3.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Lib/test/test_wait3.py b/Lib/test/test_wait3.py index bd06c8d..3d70ced 100644 --- a/Lib/test/test_wait3.py +++ b/Lib/test/test_wait3.py @@ -7,15 +7,11 @@ import unittest from test.fork_wait import ForkWait from test.support import run_unittest, reap_children -try: - os.fork -except AttributeError: - raise unittest.SkipTest("os.fork not defined -- skipping test_wait3") +if not hassattr(os, 'fork'): + raise unittest.SkipTest("os.fork not defined") -try: - os.wait3 -except AttributeError: - raise unittest.SkipTest("os.wait3 not defined -- skipping test_wait3") +if not hasattr(os, 'wait3'): + raise unittest.SkipTest("os.wait3 not defined") class Wait3Test(ForkWait): def wait_impl(self, cpid): |