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)
Example #3
0
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())
Example #5
0
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)
Example #6
0
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)
Example #8
0
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)
Example #9
0
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)
Example #10
0
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)
Example #11
0
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():
    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))
Example #13
0
def test_main():
    loader = unittest.TestLoader()
    suite = unittest.TestSuite()
    suite.addTest(loader.loadTestsFromTestCase(ProfileHookTestCase))
    suite.addTest(loader.loadTestsFromTestCase(ProfileSimulatorTestCase))
    test_support.run_suite(suite)
Example #14
0
def test_main():
    run_suite(suite())
Example #15
0
def test_main():
    import test_support
    test_support.run_suite(test_suite())
Example #16
0
from __future__ import generators
Example #17
0
def test_main():
    loader = unittest.TestLoader()
    suite = unittest.TestSuite()
    suite.addTest(loader.loadTestsFromTestCase(ReferencesTestCase))
    suite.addTest(loader.loadTestsFromTestCase(MappingTestCase))
    test_support.run_suite(suite)
Example #18
0
import sys
Example #19
0
import parser
Example #20
0
def test_main():
    from test_support import run_suite
    run_suite(suite())
Example #21
0
import parser
Example #22
0
import pickle
Example #23
0
def test_main():
    tests = [TestSelect, TestSelectOnAccept]
    suites = [unittest.makeSuite(klass, 'test') for klass in tests]
    test_support.run_suite(unittest.TestSuite(suites))    
def test_main():
    from test_support import run_suite
    run_suite(suite())
def test_main():
    loader = unittest.TestLoader()
    suite = unittest.TestSuite()
    suite.addTest(loader.loadTestsFromTestCase(ReferencesTestCase))
    suite.addTest(loader.loadTestsFromTestCase(MappingTestCase))
    test_support.run_suite(suite)
Example #26
0
# Copyright (C) 2001 Python Software Foundation
Example #27
0
def test_main():
    tests = [TestSelect, TestSelectOnAccept]
    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)
Example #29
0
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)
Example #31
0
import cPickle