Python test.support.reap_children() Examples

The following are 30 code examples of 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.support , or try the search function .
Example #1
Source File: test_posix.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def test_main():
    try:
        support.run_unittest(PosixTester, PosixGroupsTester)
    finally:
        support.reap_children() 
Example #2
Source File: test_mailbox.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
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() 
Example #3
Source File: test_select.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def test_main():
    support.run_unittest(SelectTestCase)
    support.reap_children() 
Example #4
Source File: test_selectors.py    From annotated-py-projects with MIT License 5 votes vote down vote up
def test_main():
    tests = [DefaultSelectorTestCase, SelectSelectorTestCase,
             PollSelectorTestCase, EpollSelectorTestCase,
             KqueueSelectorTestCase, DevpollSelectorTestCase]
    support.run_unittest(*tests)
    support.reap_children() 
Example #5
Source File: test_utils.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
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() 
Example #6
Source File: test_signal.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def tearDownModule():
    support.reap_children() 
Example #7
Source File: test_popen.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
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() 
Example #8
Source File: test_multiprocessing_main_handling.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def tearDownModule():
    support.reap_children() 
Example #9
Source File: lock_tests.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def tearDown(self):
        support.threading_cleanup(*self._threads)
        support.reap_children() 
Example #10
Source File: test_subprocess.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def test_main():
    unit_tests = (ProcessTestCase,
                  POSIXProcessTestCase,
                  Win32ProcessTestCase,
                  MiscTests,
                  ProcessTestCaseNoPoll,
                  CommandsWithSpaces,
                  ContextManagerTests,
                  RunFuncTestCase,
                  )

    support.run_unittest(*unit_tests)
    support.reap_children() 
Example #11
Source File: test_bz2.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def test_main():
    support.run_unittest(
        BZ2FileTest,
        BZ2CompressorTest,
        BZ2DecompressorTest,
        CompressDecompressTest,
        OpenTest,
    )
    support.reap_children() 
Example #12
Source File: test_unittest.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def test_main():
    # used by regrtest
    support.run_unittest(unittest.test.suite())
    support.reap_children() 
Example #13
Source File: test_cmd_line_script.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def test_main():
    support.run_unittest(CmdLineTest)
    support.reap_children() 
Example #14
Source File: test_unittest.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def test_main():
    # used by regrtest
    support.run_unittest(unittest.test.suite())
    support.reap_children() 
Example #15
Source File: test_selectors.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def test_main():
    tests = [DefaultSelectorTestCase, SelectSelectorTestCase,
             PollSelectorTestCase, EpollSelectorTestCase,
             KqueueSelectorTestCase, DevpollSelectorTestCase]
    support.run_unittest(*tests)
    support.reap_children() 
Example #16
Source File: test_select.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def tearDownModule():
    support.reap_children() 
Example #17
Source File: test_signal.py    From android_universal with MIT License 5 votes vote down vote up
def tearDownModule():
    support.reap_children() 
Example #18
Source File: test_popen.py    From android_universal with MIT License 5 votes vote down vote up
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() 
Example #19
Source File: test_multiprocessing_main_handling.py    From android_universal with MIT License 5 votes vote down vote up
def tearDownModule():
    support.reap_children() 
Example #20
Source File: lock_tests.py    From android_universal with MIT License 5 votes vote down vote up
def tearDown(self):
        support.threading_cleanup(*self._threads)
        support.reap_children() 
Example #21
Source File: utils.py    From android_universal with MIT License 5 votes vote down vote up
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() 
Example #22
Source File: test_mailbox.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
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() 
Example #23
Source File: test_signal.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def tearDownModule():
    support.reap_children() 
Example #24
Source File: test_popen.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
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() 
Example #25
Source File: test_multiprocessing_main_handling.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def tearDownModule():
    support.reap_children() 
Example #26
Source File: lock_tests.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def tearDown(self):
        support.threading_cleanup(*self._threads)
        support.reap_children() 
Example #27
Source File: test_subprocess.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
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() 
Example #28
Source File: test_bz2.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def test_main():
    support.run_unittest(
        BZ2FileTest,
        BZ2CompressorTest,
        BZ2DecompressorTest,
        CompressDecompressTest,
        OpenTest,
    )
    support.reap_children() 
Example #29
Source File: test_posix.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def test_main():
    try:
        support.run_unittest(PosixTester, PosixGroupsTester)
    finally:
        support.reap_children() 
Example #30
Source File: test_cmd_line_script.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def test_main():
    support.run_unittest(CmdLineTest)
    support.reap_children()