Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)
kill process by id. 

        def kill(pid):
    """ kill process by id. """
    dokill(pid)
        


src/p/l/plexnet-HEAD/third_party/generic/pypy/py/process/testing/test_killproc.py   plexnet(Download)
    proc = py.std.subprocess.Popen([sys.executable, str(t)])
    assert proc.poll() is None # no return value yet
    py.process.kill(proc.pid)
    ret = proc.wait()
    if sys.platform == "win32" and ret == 0:

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/path/svn/testing/test_auth.py   plexnet(Download)
    def teardown_method(self, method):
        py.process.kill(self.pid)
 
    def _start_svnserve(self):
        make_repo_auth(self.repopath, {'johnny': ('foo', 'rw')})

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/execnet/testing/test_gateway.py   plexnet(Download)
        """)
        remotepid = channel.receive()
        py.process.kill(remotepid)
        py.test.raises(channel.RemoteError, "channel.waitclose(TESTTIMEOUT)")
        py.test.raises(EOFError, channel.send, None)

src/p/y/py-1.4.20/testing/process/test_killproc.py   py(Download)
    proc = py.std.subprocess.Popen([sys.executable, str(t)])
    assert proc.poll() is None # no return value yet
    py.process.kill(proc.pid)
    ret = proc.wait()
    if sys.platform == "win32" and ret == 0:

src/p/y/py-1.4.20/testing/path/test_svnauth.py   py(Download)
        # XXX caching is too global
        py.path.svnurl._lsnorevcache._dict.clear()
        request.addfinalizer(lambda: py.process.kill(self.pid))
 
class TestSvnWCAuthFunctional:

src/e/x/execnet-1.2.0/testing/test_termination.py   execnet(Download)
    ''')
    pid = channel.receive()
    py.process.kill(pid)
    channel.setcallback(q.put, endmarker=999)
    val = q.get(TESTTIMEOUT)

src/e/x/execnet-1.2.0/testing/test_gateway.py   execnet(Download)
        """)
        remotepid = channel.receive()
        py.process.kill(remotepid)
        py.test.raises(EOFError, "channel.waitclose(TESTTIMEOUT)")
        py.test.raises(IOError, channel.send, None)