浏览代码

[REF-2416] Pass shell=True when starting AppHarness on Windows (#2944)

In exec.py, run_process_and_launch_url already passes `shell=True` on windows,
but the AppHarness has never really been used on Windows, so we were missing
this detail.

Fix #2941
Masen Furer 1 年之前
父节点
当前提交
03eb258ee7
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      reflex/testing.py

+ 2 - 1
reflex/testing.py

@@ -73,8 +73,9 @@ FRONTEND_POPEN_ARGS = {}
 T = TypeVar("T")
 TimeoutType = Optional[Union[int, float]]
 
-if platform.system == "Windows":
+if platform.system() == "Windows":
     FRONTEND_POPEN_ARGS["creationflags"] = subprocess.CREATE_NEW_PROCESS_GROUP  # type: ignore
+    FRONTEND_POPEN_ARGS["shell"] = True
 else:
     FRONTEND_POPEN_ARGS["start_new_session"] = True