• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(24)  |  Call(24)  |  Derive(0)  |  Import(0)
No Document.

        def _cleanup():
    for inst in _active[:]:
        res = inst._internal_poll(_deadstate=sys.maxint)
        if res is not None and res >= 0:
            try:
                _active.remove(inst)
            except ValueError:
                # This can happen if two threads create a new Popen instance.
                # It's harmless that it was already removed, so ignore.
                pass
        


src/m/r/mr.developer-1.16/src/mr/developer/common.py   mr.developer(Download)
            thread.join()
        if sys.version_info < (2, 6):
            subprocess._cleanup = _old_subprocess_cleanup
            subprocess._cleanup()
        if self.errors:
            logger.error("There have been errors, see messages above.")
            sys.exit(1)

src/b/d/bdk-c-HEAD/workspace/script/python/Lib/test/test_cmd_line.py   bdk-c(Download)
def _kill_python_and_exit_code(p):
    p.stdin.close()
    data = p.stdout.read()
    p.stdout.close()
    # try to cleanup the child so we don't appear to leak when running
    # with regrtest -R.  This should be a no-op on Windows.
    subprocess._cleanup()

src/b/d/bdk-c-HEAD/trunk/workspace/script/python/Lib/test/test_cmd_line.py   bdk-c(Download)
def _kill_python_and_exit_code(p):
    p.stdin.close()
    data = p.stdout.read()
    p.stdout.close()
    # try to cleanup the child so we don't appear to leak when running
    # with regrtest -R.  This should be a no-op on Windows.
    subprocess._cleanup()

src/p/y/pyvm-HEAD/projects/python_in_a_can/trunk/win32/python-2.7/Lib/test/test_subprocess.py   pyvm(Download)
    def tearDown(self):
        for inst in subprocess._active:
            inst.wait()
        subprocess._cleanup()
        self.assertFalse(subprocess._active, "subprocess._active not empty")
 
    def assertStderrEqual(self, stderr, expected, msg=None):

src/p/y/pyvm-HEAD/projects/python_in_a_can/trunk/win32/python-2.7/Lib/test/test_popen2.py   pyvm(Download)
        import subprocess
        for inst in subprocess._active:
            inst.wait()
        subprocess._cleanup()
        self.assertFalse(subprocess._active, "subprocess._active not empty")
        reap_children()
 

src/p/y/pyvm-HEAD/projects/python_in_a_can/trunk/win32/python-2.7/Lib/test/script_helper.py   pyvm(Download)
    # try to cleanup the child so we don't appear to leak when running
    # with regrtest -R.
    p.wait()
    subprocess._cleanup()
    return data
 
def run_python(*args, **kwargs):

src/s/t/stackless-HEAD/Lib/test/test_subprocess.py   stackless(Download)
    def tearDown(self):
        for inst in subprocess._active:
            inst.wait()
        subprocess._cleanup()
        self.assertFalse(subprocess._active, "subprocess._active not empty")
 
    def assertStderrEqual(self, stderr, expected, msg=None):

src/s/t/stackless-HEAD/Lib/test/test_popen2.py   stackless(Download)
        import subprocess
        for inst in subprocess._active:
            inst.wait()
        subprocess._cleanup()
        self.assertFalse(subprocess._active, "subprocess._active not empty")
        reap_children()
 

src/s/t/stackless-HEAD/Lib/test/script_helper.py   stackless(Download)
    # try to cleanup the child so we don't appear to leak when running
    # with regrtest -R.
    p.wait()
    subprocess._cleanup()
    return data
 
def run_python(*args, **kwargs):

src/u/n/unladen-swallow-HEAD/Lib/test/test_cmd_line.py   unladen-swallow(Download)
    p.wait()
    # try to cleanup the child so we don't appear to leak when running
    # with regrtest -R.  This should be a no-op on Windows.
    subprocess._cleanup()
    return data, p.returncode
 
class CmdLineTest(unittest.TestCase):

  1 | 2 | 3  Next