Skip to content

Commit

Permalink
Fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
benjastudio committed Aug 23, 2017
1 parent 3dbdc54 commit 59c8bc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_simpleflow/test_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,19 +293,19 @@ def test_timeout_execute_from_thread():
t.join()


def create_subprocess_and_raise():
def create_sleeper_subprocess():
pid = subprocess.Popen(['sleep', '600']).pid
return pid


def test_execute_dont_kill_children():
pid = execute.python()(create_subprocess_and_raise)()
pid = execute.python()(create_sleeper_subprocess)()
subprocess = psutil.Process(pid)
assert subprocess.status() == 'sleeping'
subprocess.terminate() # cleanup


def test_execute_kill_children():
pid = execute.python(kill_children=True)(create_subprocess_and_raise)()
pid = execute.python(kill_children=True)(create_sleeper_subprocess)()
with pytest.raises(psutil.NoSuchProcess):
psutil.Process(pid)

0 comments on commit 59c8bc8

Please sign in to comment.