diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-03-30 15:14:01 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-03-30 15:14:01 (GMT) |
commit | ad74dfe8ff6253d258aa6e35af0c755bcee2f4ac (patch) | |
tree | 7da04b5883b2eb7e2915a50a3699b2f4f3fea572 /Lib | |
parent | 3c87e2289de06548f87250e59dbe69cbab967155 (diff) | |
download | cpython-ad74dfe8ff6253d258aa6e35af0c755bcee2f4ac.zip cpython-ad74dfe8ff6253d258aa6e35af0c755bcee2f4ac.tar.gz cpython-ad74dfe8ff6253d258aa6e35af0c755bcee2f4ac.tar.bz2 |
Convert import try/except to use test_support.import_module().
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_fork1.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/test/test_fork1.py b/Lib/test/test_fork1.py index dfd5016..cfb3a71 100644 --- a/Lib/test/test_fork1.py +++ b/Lib/test/test_fork1.py @@ -3,14 +3,11 @@ import os import time -import unittest from test.fork_wait import ForkWait -from test.test_support import run_unittest, reap_children +from test.test_support import run_unittest, reap_children, import_module + +import_module('os.fork') -try: - os.fork -except AttributeError: - raise unittest.SkipTest, "os.fork not defined -- skipping test_fork1" class ForkTest(ForkWait): def wait_impl(self, cpid): |