當前位置: 首頁>>代碼示例>>Python>>正文


Python test_support.reap_children方法代碼示例

本文整理匯總了Python中test.test_support.reap_children方法的典型用法代碼示例。如果您正苦於以下問題:Python test_support.reap_children方法的具體用法?Python test_support.reap_children怎麽用?Python test_support.reap_children使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在test.test_support的用法示例。


在下文中一共展示了test_support.reap_children方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_popen

# 需要導入模塊: from test import test_support [as 別名]
# 或者: from test.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"]
        )
        test_support.reap_children() 
開發者ID:IronLanguages,項目名稱:ironpython2,代碼行數:17,代碼來源:test_popen.py

示例2: tearDown

# 需要導入模塊: from test import test_support [as 別名]
# 或者: from test.test_support import reap_children [as 別名]
def tearDown(self):
        support.threading_cleanup(*self._threads)
        support.reap_children() 
開發者ID:IronLanguages,項目名稱:ironpython2,代碼行數:5,代碼來源:lock_tests.py

示例3: setUp

# 需要導入模塊: from test import test_support [as 別名]
# 或者: from test.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).
        test_support.reap_children() 
開發者ID:IronLanguages,項目名稱:ironpython2,代碼行數:6,代碼來源:test_subprocess.py

示例4: tearDown

# 需要導入模塊: from test import test_support [as 別名]
# 或者: from test.test_support import reap_children [as 別名]
def tearDown(self):
        for inst in subprocess._active:
            inst.wait()
        subprocess._cleanup()
        self.assertFalse(subprocess._active, "subprocess._active not empty")
        self.doCleanups()
        test_support.reap_children() 
開發者ID:IronLanguages,項目名稱:ironpython2,代碼行數:9,代碼來源:test_subprocess.py

示例5: test_main

# 需要導入模塊: from test import test_support [as 別名]
# 或者: from test.test_support import reap_children [as 別名]
def test_main():
    unit_tests = (ProcessTestCase,
                  POSIXProcessTestCase,
                  Win32ProcessTestCase,
                  ProcessTestCaseNoPoll,
                  HelperFunctionTests,
                  CommandsWithSpaces)

    test_support.run_unittest(*unit_tests)
    test_support.reap_children() 
開發者ID:IronLanguages,項目名稱:ironpython2,代碼行數:12,代碼來源:test_subprocess.py

示例6: test_main

# 需要導入模塊: from test import test_support [as 別名]
# 或者: from test.test_support import reap_children [as 別名]
def test_main():
    test_support.run_unittest(distutils.tests.test_suite())
    test_support.reap_children() 
開發者ID:IronLanguages,項目名稱:ironpython2,代碼行數:5,代碼來源:test_distutils.py

示例7: test_main

# 需要導入模塊: from test import test_support [as 別名]
# 或者: from test.test_support import reap_children [as 別名]
def test_main():
    test_support.run_unittest(unittest.test.suite())
    test_support.reap_children() 
開發者ID:IronLanguages,項目名稱:ironpython2,代碼行數:5,代碼來源:test_unittest.py

示例8: test_main

# 需要導入模塊: from test import test_support [as 別名]
# 或者: from test.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)
    test_support.run_unittest(*tests)
    test_support.reap_children() 
開發者ID:IronLanguages,項目名稱:ironpython2,代碼行數:10,代碼來源:test_mailbox.py

示例9: test_main

# 需要導入模塊: from test import test_support [as 別名]
# 或者: from test.test_support import reap_children [as 別名]
def test_main():
    test_support.run_unittest(SelectTestCase)
    test_support.reap_children() 
開發者ID:IronLanguages,項目名稱:ironpython2,代碼行數:5,代碼來源:test_select.py

示例10: test_main

# 需要導入模塊: from test import test_support [as 別名]
# 或者: from test.test_support import reap_children [as 別名]
def test_main():
    test_support.run_unittest(
        BZ2FileTest,
        BZ2CompressorTest,
        BZ2DecompressorTest,
        FuncTest
    )
    test_support.reap_children() 
開發者ID:dxwu,項目名稱:BinderFilter,代碼行數:10,代碼來源:test_bz2.py


注:本文中的test.test_support.reap_children方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。