From 59c8bc8b17b0705c5b78fc92775be4d313e401b5 Mon Sep 17 00:00:00 2001 From: Benjamin Blanc Date: Wed, 23 Aug 2017 16:24:35 +0200 Subject: [PATCH] Fix function name --- tests/test_simpleflow/test_execute.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_simpleflow/test_execute.py b/tests/test_simpleflow/test_execute.py index c6bcb881c..ccebfe6d8 100644 --- a/tests/test_simpleflow/test_execute.py +++ b/tests/test_simpleflow/test_execute.py @@ -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)