From 94c37c17fa1d59e04edb2f5f79ec6a5814cffded Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Sat, 23 Jan 2016 09:51:25 +0100 Subject: try to fix occasional failure on win --- test/test_psutil.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_psutil.py b/test/test_psutil.py index f98b0134..333015be 100644 --- a/test/test_psutil.py +++ b/test/test_psutil.py @@ -1789,8 +1789,9 @@ class TestProcess(unittest.TestCase): # https://github.com/giampaolo/psutil/issues/628 funky_path = create_temp_executable_file('foo bar )') self.addCleanup(safe_remove, funky_path) - cmdline = [funky_path, "arg1", "arg2", "", "arg3", "", "-c", - "import time; [time.sleep(0.01) for x in range(3000)];"] + cmdline = [funky_path, "-c", + "import time; [time.sleep(0.01) for x in range(3000)];" + "arg1", "arg2", "", "arg3", ""] sproc = get_test_subprocess(cmdline) p = psutil.Process(sproc.pid) # ...in order to try to prevent occasional failures on travis -- cgit v1.2.1