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)
Beispiel #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())
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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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))
Beispiel #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)
Beispiel #14
0
def test_main():
    run_suite(suite())
Beispiel #15
0
def test_main():
    import test_support
    test_support.run_suite(test_suite())
Beispiel #16
0
from __future__ import generators
Beispiel #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)
Beispiel #18
0
import sys
Beispiel #19
0
import parser
Beispiel #20
0
def test_main():
    from test_support import run_suite
    run_suite(suite())
Beispiel #21
0
import parser
Beispiel #22
0
import pickle
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)
Beispiel #26
0
# Copyright (C) 2001 Python Software Foundation
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)
Beispiel #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)
Beispiel #31
0
import cPickle