• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python support.run_unittest函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中test.support.run_unittest函数的典型用法代码示例。如果您正苦于以下问题:Python run_unittest函数的具体用法?Python run_unittest怎么用?Python run_unittest使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了run_unittest函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: test_main

def test_main():
    support.requires('network')
    support.run_unittest(
        CreationTestCase,
        TCPTimeoutTestCase,
        UDPTimeoutTestCase,
    )
开发者ID:5outh,项目名称:Databases-Fall2014,代码行数:7,代码来源:test_timeout.py


示例2: test_main

def test_main():
    support.run_unittest(
        OSEINTRTest,
        SocketEINTRTest,
        TimeEINTRTest,
        SignalEINTRTest,
        SelectEINTRTest)
开发者ID:cpcloud,项目名称:cpython,代码行数:7,代码来源:eintr_tester.py


示例3: test_main

def test_main():
    support.run_unittest(XMLRPCTestCase, HelperTestCase, DateTimeTestCase,
            BinaryTestCase, FaultTestCase, UseBuiltinTypesTestCase,
            SimpleServerTestCase, KeepaliveServerTestCase1,
            KeepaliveServerTestCase2, GzipServerTestCase,
            MultiPathServerTestCase, ServerProxyTestCase, FailingServerTestCase,
            CGIHandlerTestCase)
开发者ID:fwyzard,项目名称:cpython,代码行数:7,代码来源:test_xmlrpc.py


示例4: test_main

def test_main():
    support.requires('network')
    with support.check_py3k_warnings(
            ("urllib.urlopen.. has been removed", DeprecationWarning)):
        support.run_unittest(URLTimeoutTest,
                                  urlopenNetworkTests,
                                  urlretrieveNetworkTests)
开发者ID:isaiah,项目名称:jython3,代码行数:7,代码来源:test_urllibnet.py


示例5: test_main

def test_main():
    support.run_unittest(
        TestTracemallocEnabled,
        TestSnapshot,
        TestFilters,
        TestCommandLine,
    )
开发者ID:Connor124,项目名称:Gran-Theft-Crop-Toe,代码行数:7,代码来源:test_tracemalloc.py


示例6: test_main

def test_main():
    support.run_unittest(
        ChecksumTestCase,
        ExceptionTestCase,
        CompressTestCase,
        CompressObjectTestCase
    )
开发者ID:469306621,项目名称:Languages,代码行数:7,代码来源:test_zlib.py


示例7: test_main

def test_main():
    support.run_unittest(
        TestVectorsTestCase,
        ConstructorTestCase,
        SanityTestCase,
        CopyTestCase
    )
开发者ID:7modelsan,项目名称:kbengine,代码行数:7,代码来源:test_hmac.py


示例8: test_main

def test_main(verbose=None):
    test_classes = (
        TestPartialC,
        TestPartialPy,
        TestPartialCSubclass,
        TestUpdateWrapper,
        TestTotalOrdering,
        TestCmpToKeyC,
        TestCmpToKeyPy,
        TestWraps,
        TestReduce,
        TestLRU,
        TestSingleDispatch,
    )
    support.run_unittest(*test_classes)

    # verify reference counting
    if verbose and hasattr(sys, "gettotalrefcount"):
        import gc
        counts = [None] * 5
        for i in range(len(counts)):
            support.run_unittest(*test_classes)
            gc.collect()
            counts[i] = sys.gettotalrefcount()
        print(counts)
开发者ID:aholkner,项目名称:cpython,代码行数:25,代码来源:test_functools.py


示例9: test_main

def test_main(verbose=None):
    from test import test_code
    run_doctest(test_code, verbose)
    tests = [CodeTest, CodeConstsTest, CodeWeakRefTest]
    if check_impl_detail(cpython=True) and ctypes is not None:
        tests.append(CoExtra)
    run_unittest(*tests)
开发者ID:1st1,项目名称:cpython,代码行数:7,代码来源:test_code.py


示例10: test_main

def test_main():
    support.run_unittest(
        OutputTestCase,
        CalendarTestCase,
        MondayTestCase,
        SundayTestCase
    )
开发者ID:LinkedModernismProject,项目名称:web_code,代码行数:7,代码来源:test_calendar.py


示例11: test_main

def test_main():
    tests = [HelperFunctionTests, DispatcherTests, DispatcherWithSendTests,
             DispatcherWithSendTests_UsePoll]
    if hasattr(asyncore, 'file_wrapper'):
        tests.append(FileWrapperTest)

    run_unittest(*tests)
开发者ID:henrywoo,项目名称:Python3.1.3-Linux,代码行数:7,代码来源:test_asyncore.py


示例12: test_main

def test_main():
    support.run_unittest(
        TestCRNewlines,
        TestLFNewlines,
        TestCRLFNewlines,
        TestMixedNewlines
     )
开发者ID:LinkedModernismProject,项目名称:web_code,代码行数:7,代码来源:test_univnewlines.py


示例13: test_main

def test_main():
    run_unittest(FailureTestCase, NonexceptionalTestCase,
                 NestedNonexceptionalTestCase, ExceptionalTestCase,
                 NonLocalFlowControlTestCase,
                 AssignmentTargetTestCase,
                 ExitSwallowsExceptionTestCase,
                 NestedWith)
开发者ID:469306621,项目名称:Languages,代码行数:7,代码来源:test_with.py


示例14: test_main

def test_main():
    support.run_unittest(Frozen_ModuleLockAsRLockTests,
                         Source_ModuleLockAsRLockTests,
                         Frozen_DeadlockAvoidanceTests,
                         Source_DeadlockAvoidanceTests,
                         Frozen_LifetimeTests,
                         Source_LifetimeTests)
开发者ID:10sr,项目名称:cpython,代码行数:7,代码来源:test_locks.py


示例15: test_main

def test_main(verbose=None):
    run_unittest(ImportTests, PycacheTests, FilePermissionTests,
                 PycRewritingTests, PathsTests, RelativeImportTests,
                 OverridingImportBuiltinTests,
                 ImportlibBootstrapTests,
                 TestSymbolicallyLinkedPackage,
                 ImportTracebackTests)
开发者ID:Elleo,项目名称:python3,代码行数:7,代码来源:test_import.py


示例16: test_main

def test_main():
    from test import support
    support.run_unittest(
            ModuleForLoaderTests,
            SetPackageTests,
            ResolveNameTests
        )
开发者ID:Anzumana,项目名称:cpython,代码行数:7,代码来源:test_util.py


示例17: test_main

def test_main():
    from doctest import DocFileSuite

    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(MathTests))
    suite.addTest(DocFileSuite("ieee754.txt"))
    run_unittest(suite)
开发者ID:xdray,项目名称:kbengine,代码行数:7,代码来源:test_math.py


示例18: test_main

def test_main():
    tests = [
        PickleTests,
        PyUnpicklerTests,
        PyPicklerTests,
        PyPersPicklerTests,
        PyDispatchTableTests,
        PyChainDispatchTableTests,
        CompatPickleTests,
    ]
    if has_c_implementation:
        tests.extend(
            [
                CUnpicklerTests,
                CPicklerTests,
                CPersPicklerTests,
                CDumpPickle_LoadPickle,
                DumpPickle_CLoadPickle,
                PyPicklerUnpicklerObjectTests,
                CPicklerUnpicklerObjectTests,
                CDispatchTableTests,
                CChainDispatchTableTests,
                InMemoryPickleTests,
                SizeofTests,
            ]
        )
    support.run_unittest(*tests)
    support.run_doctest(pickle)
开发者ID:stan2133,项目名称:cpython,代码行数:28,代码来源:test_pickle.py


示例19: test_main

def test_main():
    tests = [
                ChdirTestCase,
                ImportTestCase,
                ImportPackageTestCase,
                ZipimportTestCase,
                PyCompileTestCase,
                ExecfileTestCase,
                ExecfileTracebackTestCase,
                ListdirTestCase,
                DirsTestCase,
                FilesTestCase,
                SymlinkTestCase
            ]
    if WINDOWS:
        tests.append(WindowsChdirTestCase)
        tests.remove(SymlinkTestCase)       #  os.symlink ... Availability: Unix.

    if support.is_jython:
        tests.extend((ImportJavaClassTestCase,
                      ImportJarTestCase))
 
    if support.is_resource_enabled('subprocess'):
        tests.append(SubprocessTestCase)

    support.run_unittest(*tests)
开发者ID:isaiah,项目名称:jython3,代码行数:26,代码来源:test_chdir.py


示例20: test_main

def test_main():
    support.requires("network")
    support.run_unittest(AuthTests,
                              OtherNetworkTests,
                              CloseSocketTest,
                              TimeoutTest,
                              )
开发者ID:LinkedModernismProject,项目名称:web_code,代码行数:7,代码来源:test_urllib2net.py



注:本文中的test.support.run_unittest函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python support.start_threads函数代码示例发布时间:2022-05-27
下一篇:
Python support.run_doctest函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap