Python test.test_support.reap_children() Examples
The following are 30
code examples of test.test_support.reap_children().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
test.test_support
, or try the search function
.
Example #1
Source File: lock_tests.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def tearDown(self): support.threading_cleanup(*self._threads) support.reap_children()
Example #2
Source File: test_subprocess.py From gcblue with BSD 3-Clause "New" or "Revised" License | 5 votes |
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()
Example #3
Source File: test_subprocess.py From gcblue with BSD 3-Clause "New" or "Revised" License | 5 votes |
def test_main(): unit_tests = (ProcessTestCase, POSIXProcessTestCase, Win32ProcessTestCase, ProcessTestCaseNoPoll, HelperFunctionTests, CommandsWithSpaces) test_support.run_unittest(*unit_tests) test_support.reap_children()
Example #4
Source File: test_bz2.py From gcblue with BSD 3-Clause "New" or "Revised" License | 5 votes |
def test_main(): test_support.run_unittest( BZ2FileTest, BZ2CompressorTest, BZ2DecompressorTest, FuncTest ) test_support.reap_children()
Example #5
Source File: test_unittest.py From gcblue with BSD 3-Clause "New" or "Revised" License | 5 votes |
def test_main(): test_support.run_unittest(unittest.test.suite()) test_support.reap_children()
Example #6
Source File: test_mailbox.py From gcblue with BSD 3-Clause "New" or "Revised" License | 5 votes |
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()
Example #7
Source File: test_select.py From gcblue with BSD 3-Clause "New" or "Revised" License | 5 votes |
def test_main(): test_support.run_unittest(SelectTestCase) test_support.reap_children()
Example #8
Source File: test_subprocess.py From medicare-demo with Apache License 2.0 | 5 votes |
def setUp(self): # Try to minimize the number of children we have so this test # doesn't crash on some buildbots (Alphas in particular). if hasattr(test_support, "reap_children"): test_support.reap_children()
Example #9
Source File: test_subprocess.py From medicare-demo with Apache License 2.0 | 5 votes |
def tearDown(self): # Try to minimize the number of children we have so this test # doesn't crash on some buildbots (Alphas in particular). if hasattr(test_support, "reap_children"): test_support.reap_children()
Example #10
Source File: test_subprocess.py From medicare-demo with Apache License 2.0 | 5 votes |
def test_main(): # Spawning many new jython processes takes a long time test_support.requires('subprocess') test_support.run_unittest(ProcessTestCase) if hasattr(test_support, "reap_children"): test_support.reap_children()
Example #11
Source File: test_bz2.py From medicare-demo with Apache License 2.0 | 5 votes |
def test_main(): test_support.run_unittest( BZ2FileTest, BZ2CompressorTest, BZ2DecompressorTest, FuncTest ) test_support.reap_children()
Example #12
Source File: test_mailbox.py From medicare-demo with Apache License 2.0 | 5 votes |
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()
Example #13
Source File: test_popen.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
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()
Example #14
Source File: lock_tests.py From gcblue with BSD 3-Clause "New" or "Revised" License | 5 votes |
def tearDown(self): support.threading_cleanup(*self._threads) support.reap_children()
Example #15
Source File: test_subprocess.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def setUp(self): # Try to minimize the number of children we have so this test # doesn't crash on some buildbots (Alphas in particular). if hasattr(test_support, "reap_children"): test_support.reap_children()
Example #16
Source File: test_subprocess.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def tearDown(self): # Try to minimize the number of children we have so this test # doesn't crash on some buildbots (Alphas in particular). if hasattr(test_support, "reap_children"): test_support.reap_children()
Example #17
Source File: test_subprocess.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def test_main(): # Spawning many new jython processes takes a long time test_support.requires('subprocess') test_support.run_unittest(ProcessTestCase) if hasattr(test_support, "reap_children"): test_support.reap_children()
Example #18
Source File: test_distutils.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def test_main(): test_support.run_unittest(distutils.tests.test_suite()) test_support.reap_children()
Example #19
Source File: test_mailbox.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
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()
Example #20
Source File: test_popen.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
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()
Example #21
Source File: lock_tests.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def tearDown(self): support.threading_cleanup(*self._threads) support.reap_children()
Example #22
Source File: test_subprocess.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def setUp(self): # Try to minimize the number of children we have so this test # doesn't crash on some buildbots (Alphas in particular). if hasattr(test_support, "reap_children"): test_support.reap_children()
Example #23
Source File: test_subprocess.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def tearDown(self): # Try to minimize the number of children we have so this test # doesn't crash on some buildbots (Alphas in particular). if hasattr(test_support, "reap_children"): test_support.reap_children()
Example #24
Source File: test_subprocess.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def test_main(): # Spawning many new jython processes takes a long time test_support.requires('subprocess') test_support.run_unittest(ProcessTestCase) if hasattr(test_support, "reap_children"): test_support.reap_children()
Example #25
Source File: test_distutils.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def test_main(): test_support.run_unittest(distutils.tests.test_suite()) test_support.reap_children()
Example #26
Source File: test_mailbox.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
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()
Example #27
Source File: test_bz2.py From BinderFilter with MIT License | 5 votes |
def test_main(): test_support.run_unittest( BZ2FileTest, BZ2CompressorTest, BZ2DecompressorTest, FuncTest ) test_support.reap_children()
Example #28
Source File: lock_tests.py From ironpython2 with Apache License 2.0 | 5 votes |
def tearDown(self): support.threading_cleanup(*self._threads) support.reap_children()
Example #29
Source File: test_subprocess.py From ironpython2 with Apache License 2.0 | 5 votes |
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()
Example #30
Source File: test_subprocess.py From ironpython2 with Apache License 2.0 | 5 votes |
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()