From 08a9342aa25047325fff111e8ca20b00bf19f08c Mon Sep 17 00:00:00 2001 From: Avasam Date: Thu, 10 Aug 2023 14:12:48 -0400 Subject: [PATCH] Missed SetApplicationName in tests https://github.com/mhammond/pywin32/pull/1990#discussion_r1290454755 --- com/win32comext/taskscheduler/test/test_addtask_2.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/com/win32comext/taskscheduler/test/test_addtask_2.py b/com/win32comext/taskscheduler/test/test_addtask_2.py index 5c2f7c8dd..b803db437 100644 --- a/com/win32comext/taskscheduler/test/test_addtask_2.py +++ b/com/win32comext/taskscheduler/test/test_addtask_2.py @@ -20,10 +20,9 @@ t = ts.NewWorkItem(task_name) t.SetComment("Test a task running as local system acct") -t.SetApplicationName("c:\\Python37\\python.exe") +t.SetApplicationName("py.exe") t.SetPriority(taskscheduler.REALTIME_PRIORITY_CLASS) t.SetParameters("test_localsystem.py") -t.SetWorkingDirectory("c:\\Python37") t.SetCreator("test_addtask_2.py") t.SetMaxRunTime(20000) # milliseconds t.SetFlags(taskscheduler.TASK_FLAG_DELETE_WHEN_DONE)