mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Clean up the messages used by some tests.
This commit is contained in:
parent
8c5ec0a3af
commit
cd8efa3704
4 changed files with 7 additions and 11 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue