mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
This commit is contained in:
parent
ad57d97596
commit
bec087f29d
31 changed files with 75 additions and 75 deletions
|
@ -3,18 +3,19 @@
|
|||
|
||||
import os
|
||||
import time
|
||||
import unittest
|
||||
from test.fork_wait import ForkWait
|
||||
from test.test_support import SkipTest, run_unittest, reap_children
|
||||
from test.test_support import run_unittest, reap_children
|
||||
|
||||
try:
|
||||
os.fork
|
||||
except AttributeError:
|
||||
raise SkipTest, "os.fork not defined -- skipping test_wait3"
|
||||
raise unittest.SkipTest, "os.fork not defined -- skipping test_wait3"
|
||||
|
||||
try:
|
||||
os.wait3
|
||||
except AttributeError:
|
||||
raise SkipTest, "os.wait3 not defined -- skipping test_wait3"
|
||||
raise unittest.SkipTest, "os.wait3 not defined -- skipping test_wait3"
|
||||
|
||||
class Wait3Test(ForkWait):
|
||||
def wait_impl(self, cpid):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue