def test_main(): tests = [ GeneralModuleTests, BasicTCPTest, TCPTimeoutTest, TCPClientTimeoutTest, TestExceptions, TestTCPAddressParameters, TestUDPAddressParameters, BasicUDPTest, UDPTimeoutTest, NonBlockingTCPTests, NonBlockingUDPTests, FileObjectClassOpenCloseTests, FileObjectClassTestCase, UnbufferedFileObjectClassTestCase, LineBufferedFileObjectClassTestCase, SmallBufferedFileObjectClassTestCase ] if hasattr(socket, "socketpair"): tests.append(BasicSocketPairTest) if sys.platform[:4] == 'java': tests.append(TestJythonExceptions) suites = [unittest.makeSuite(klass, 'test') for klass in tests] test_support.run_suite(unittest.TestSuite(suites))
def test_main(): test_suite = unittest.TestSuite() test_loader = unittest.TestLoader() def suite_add(case): test_suite.addTest(test_loader.loadTestsFromTestCase(case)) suite_add(ExceptionHandling) run_suite(test_suite)
def test_main(): loader = unittest.TestLoader() suite = unittest.TestSuite() suite.addTest(loader.loadTestsFromTestCase(cPickleTests)) suite.addTest(loader.loadTestsFromTestCase(cPicklePicklerTests)) suite.addTest(loader.loadTestsFromTestCase(cPickleListPicklerTests)) suite.addTest(loader.loadTestsFromTestCase(cPickleFastPicklerTests)) test_support.run_suite(suite)
def test_main(): """ Installation Regression Test The name test_main is required """ import test_support test_support.run_suite(_make_suite())
def test_main(): loader = unittest.TestLoader() suite = unittest.TestSuite() suite.addTest(loader.loadTestsFromTestCase(cPickleTests)) suite.addTest(loader.loadTestsFromTestCase(cPicklePicklerTests)) #Jython doesn't support list based picklers #suite.addTest(loader.loadTestsFromTestCase(cPickleListPicklerTests)) suite.addTest(loader.loadTestsFromTestCase(cPickleFastPicklerTests)) test_support.run_suite(suite)
def test_main(): test_suite = unittest.TestSuite() test_loader = unittest.TestLoader() def suite_add(case): test_suite.addTest(test_loader.loadTestsFromTestCase(case)) suite_add(WeakIdentityMapTests) suite_add(LongAsScaledDoubleValueTests) suite_add(ExtraMathTests) run_suite(test_suite)
def test_main(): tests = [ TestSelectInvalidParameters, TestSelectClientSocket, TestPollClientSocket, ThreadedPollClientSocket, ] if sys.platform[:4] != 'java': tests.append(TestPipes) suites = [unittest.makeSuite(klass, 'test') for klass in tests] test_support.run_suite(unittest.TestSuite(suites))
def test_main(): loader = unittest.TestLoader() suite = unittest.TestSuite() suite.addTest(loader.loadTestsFromTestCase(ProfileHookTestCase)) suite.addTest(loader.loadTestsFromTestCase(ProfileSimulatorTestCase)) test_support.run_suite(suite)
def test_main(): run_suite(suite())
def test_main(): import test_support test_support.run_suite(test_suite())
from __future__ import generators
def test_main(): loader = unittest.TestLoader() suite = unittest.TestSuite() suite.addTest(loader.loadTestsFromTestCase(ReferencesTestCase)) suite.addTest(loader.loadTestsFromTestCase(MappingTestCase)) test_support.run_suite(suite)
import sys
import parser
def test_main(): from test_support import run_suite run_suite(suite())
import pickle
def test_main(): tests = [TestSelect, TestSelectOnAccept] suites = [unittest.makeSuite(klass, 'test') for klass in tests] test_support.run_suite(unittest.TestSuite(suites))
# Copyright (C) 2001 Python Software Foundation
def test_main(): test_support.run_suite(test_suite())
def test_main(): loader = unittest.TestLoader() suite = unittest.TestSuite() suite.addTest(loader.loadTestsFromTestCase(RoundtripLegalSyntaxTestCase)) suite.addTest(loader.loadTestsFromTestCase(IllegalSyntaxTestCase)) test_support.run_suite(suite)
import cPickle