mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -31,13 +31,13 @@ import unittest
|
|||
|
||||
from test import test_support
|
||||
if not hasattr(select, "epoll"):
|
||||
raise test_support.TestSkipped("test works only on Linux 2.6")
|
||||
raise unittest.SkipTest("test works only on Linux 2.6")
|
||||
|
||||
try:
|
||||
select.epoll()
|
||||
except IOError, e:
|
||||
if e.errno == errno.ENOSYS:
|
||||
raise test_support.TestSkipped("kernel doesn't support epoll()")
|
||||
raise unittest.SkipTest("kernel doesn't support epoll()")
|
||||
|
||||
class TestEPoll(unittest.TestCase):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue