#2621 rename test.test_support to test.support

This commit is contained in:
Benjamin Peterson 2008-05-20 21:35:26 +00:00
parent 6a654814ea
commit ee8712cda4
358 changed files with 1308 additions and 1307 deletions

View file

@ -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()