mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
#2621 rename test.test_support to test.support
This commit is contained in:
parent
6a654814ea
commit
ee8712cda4
358 changed files with 1308 additions and 1307 deletions
|
@ -29,15 +29,15 @@ import select
|
|||
import tempfile
|
||||
import unittest
|
||||
|
||||
from test import test_support
|
||||
from test import support
|
||||
if not hasattr(select, "epoll"):
|
||||
raise test_support.TestSkipped("test works only on Linux 2.6")
|
||||
raise support.TestSkipped("test works only on Linux 2.6")
|
||||
|
||||
try:
|
||||
select.epoll()
|
||||
except IOError as e:
|
||||
if e.errno == errno.ENOSYS:
|
||||
raise test_support.TestSkipped("kernel doesn't support epoll()")
|
||||
raise support.TestSkipped("kernel doesn't support epoll()")
|
||||
|
||||
class TestEPoll(unittest.TestCase):
|
||||
|
||||
|
@ -189,7 +189,7 @@ class TestEPoll(unittest.TestCase):
|
|||
ep.unregister(fd)
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(TestEPoll)
|
||||
support.run_unittest(TestEPoll)
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue