Commit d234a229 authored by Valentin Valls's avatar Valentin Valls
Browse files

Normalize function name with other python API

parent 30404e26
Pipeline #42665 passed with stages
in 140 minutes and 20 seconds
...@@ -378,7 +378,7 @@ class FlintClient: ...@@ -378,7 +378,7 @@ class FlintClient:
raise RuntimeError("No proxy connected") raise RuntimeError("No proxy connected")
self._proxy.set_window_focus() self._proxy.set_window_focus()
def kill(self): def terminate(self):
"""Interrupt Flint with SIGTERM and clean up this proxy.""" """Interrupt Flint with SIGTERM and clean up this proxy."""
if self._pid is None: if self._pid is None:
raise RuntimeError("No proxy connected") raise RuntimeError("No proxy connected")
...@@ -386,7 +386,7 @@ class FlintClient: ...@@ -386,7 +386,7 @@ class FlintClient:
self._wait_for_closed(self._pid, timeout=4.0) self._wait_for_closed(self._pid, timeout=4.0)
self._proxy_cleanup() self._proxy_cleanup()
def kill9(self): def kill(self):
"""Interrupt Flint with SIGKILL and clean up this proxy.""" """Interrupt Flint with SIGKILL and clean up this proxy."""
if self._pid is None: if self._pid is None:
raise RuntimeError("No proxy connected") raise RuntimeError("No proxy connected")
...@@ -394,6 +394,10 @@ class FlintClient: ...@@ -394,6 +394,10 @@ class FlintClient:
self._wait_for_closed(self._pid, timeout=4.0) self._wait_for_closed(self._pid, timeout=4.0)
self._proxy_cleanup() self._proxy_cleanup()
def kill9(self):
"""Deprecated. Provided for compatibility only"""
self.kill()
def _proxy_start_flint(self): def _proxy_start_flint(self):
""" """
Start a new Flint application and connect a proxy to it. Start a new Flint application and connect a proxy to it.
......
...@@ -338,7 +338,7 @@ def test_open_kill_flint(test_session_without_flint): ...@@ -338,7 +338,7 @@ def test_open_kill_flint(test_session_without_flint):
assert f is not None assert f is not None
pid = f.pid pid = f.pid
assert psutil.pid_exists(pid) assert psutil.pid_exists(pid)
f.kill9() f.kill()
try: try:
process = psutil.Process(pid) process = psutil.Process(pid)
except psutil.NoSuchProcess: except psutil.NoSuchProcess:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment