From 6be86e33f0d429984f915565788fafd2c12a3809 Mon Sep 17 00:00:00 2001 From: xucong053 <43516634+xucong053@users.noreply.github.com> Date: Sun, 18 Jul 2021 15:53:03 +0800 Subject: [PATCH] fix: Resolve the FileNotFoundError while using subprocess on Windows --- tests/scaffold_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scaffold_test.py b/tests/scaffold_test.py index ee21cf51..2eea285d 100644 --- a/tests/scaffold_test.py +++ b/tests/scaffold_test.py @@ -18,7 +18,7 @@ class TestScaffold(unittest.TestCase): # run demo testcases try: - subprocess.check_call(["hrun", project_name]) + subprocess.check_call(["hrun", project_name], shell=True) except subprocess.SubprocessError: raise finally: