当前位置: 首页>>代码示例>>Python>>正文


Python support.reap_children方法代码示例

本文整理汇总了Python中test.support.reap_children方法的典型用法代码示例。如果您正苦于以下问题:Python support.reap_children方法的具体用法?Python support.reap_children怎么用?Python support.reap_children使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在test.support的用法示例。


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

示例1: post_test_cleanup

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def post_test_cleanup():
    support.reap_children() 
开发者ID:IronLanguages,项目名称:ironpython2,代码行数:4,代码来源:regrtest.py

示例2: tearDownModule

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def tearDownModule():
    support.reap_children() 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:4,代码来源:test_signal.py

示例3: test_popen

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def test_popen(self):
        self.assertRaises(TypeError, os.popen)
        self._do_test_commandline(
            "foo bar",
            ["foo", "bar"]
        )
        self._do_test_commandline(
            'foo "spam and eggs" "silly walk"',
            ["foo", "spam and eggs", "silly walk"]
        )
        self._do_test_commandline(
            'foo "a \\"quoted\\" arg" bar',
            ["foo", 'a "quoted" arg', "bar"]
        )
        support.reap_children() 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:17,代码来源:test_popen.py

示例4: tearDown

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def tearDown(self):
        support.threading_cleanup(*self._threads)
        support.reap_children() 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:5,代码来源:lock_tests.py

示例5: setUp

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def setUp(self):
        # Try to minimize the number of children we have so this test
        # doesn't crash on some buildbots (Alphas in particular).
        support.reap_children() 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:6,代码来源:test_subprocess.py

示例6: test_main

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def test_main():
    support.run_unittest(
        BZ2FileTest,
        BZ2CompressorTest,
        BZ2DecompressorTest,
        CompressDecompressTest,
        OpenTest,
    )
    support.reap_children() 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:11,代码来源:test_bz2.py

示例7: test_main

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def test_main():
    try:
        support.run_unittest(PosixTester, PosixGroupsTester)
    finally:
        support.reap_children() 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:7,代码来源:test_posix.py

示例8: test_main

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def test_main():
    support.run_unittest(CmdLineTest)
    support.reap_children() 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:5,代码来源:test_cmd_line_script.py

示例9: test_main

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def test_main():
    # used by regrtest
    support.run_unittest(unittest.test.suite())
    support.reap_children() 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:6,代码来源:test_unittest.py

示例10: test_main

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def test_main():
    tests = (TestMailboxSuperclass, TestMaildir, TestMbox, TestMMDF, TestMH,
             TestBabyl, TestMessage, TestMaildirMessage, TestMboxMessage,
             TestMHMessage, TestBabylMessage, TestMMDFMessage,
             TestMessageConversion, TestProxyFile, TestPartialFile,
             MaildirTestCase, TestFakeMailBox)
    support.run_unittest(*tests)
    support.reap_children() 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:10,代码来源:test_mailbox.py

示例11: tearDown

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def tearDown(self):
        self.unpatch_get_running_loop()

        events.set_event_loop(None)

        # Detect CPython bug #23353: ensure that yield/yield-from is not used
        # in an except block of a generator
        self.assertEqual(sys.exc_info(), (None, None, None))

        self.doCleanups()
        support.threading_cleanup(*self._thread_cleanup)
        support.reap_children() 
开发者ID:crossbario,项目名称:txaio,代码行数:14,代码来源:_asyncio_test_utils.py

示例12: test_main

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def test_main():
    try:
        support.run_unittest(PosixTests, InterProcessSignalTests,
                             WakeupFDTests, WakeupSignalTests,
                             SiginterruptTest, ItimerTest, WindowsSignalTests,
                             PendingSignalsTests)
    finally:
        support.reap_children() 
开发者ID:IronLanguages,项目名称:ironpython3,代码行数:10,代码来源:test_signal.py

示例13: test_main

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def test_main():
    support.run_unittest(SelectTestCase)
    support.reap_children() 
开发者ID:IronLanguages,项目名称:ironpython3,代码行数:5,代码来源:test_select.py

示例14: test_main

# 需要导入模块: from test import support [as 别名]
# 或者: from test.support import reap_children [as 别名]
def test_main():
    tests = [DefaultSelectorTestCase, SelectSelectorTestCase,
             PollSelectorTestCase, EpollSelectorTestCase,
             KqueueSelectorTestCase, DevpollSelectorTestCase]
    support.run_unittest(*tests)
    support.reap_children() 
开发者ID:hhstore,项目名称:annotated-py-projects,代码行数:8,代码来源:test_selectors.py


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