mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
remove test_support.TestSkipped and just use unittest.SkipTest
This commit is contained in:
parent
21f6aac633
commit
888a39b54c
44 changed files with 99 additions and 108 deletions
|
@ -1,12 +1,12 @@
|
|||
# Test case for the os.poll() function
|
||||
|
||||
import os, select, random, unittest
|
||||
from test.test_support import TestSkipped, TESTFN, run_unittest
|
||||
from test.test_support import SkipTest, TESTFN, run_unittest
|
||||
|
||||
try:
|
||||
select.poll
|
||||
except AttributeError:
|
||||
raise TestSkipped, "select.poll not defined -- skipping test_poll"
|
||||
raise SkipTest, "select.poll not defined -- skipping test_poll"
|
||||
|
||||
|
||||
def find_ready_matching(ready, flag):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue