fix(cli): resolve Windows environment compatibility issues in python CLI tests (#5464)

Co-authored-by: Kartik <kartik.labhshetwar@mem0.ai>
This commit is contained in:
UmranPros
2026-06-12 19:40:26 +05:30
committed by GitHub
parent ced852033b
commit 1d56f85705
3 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -49,6 +49,7 @@ def _run(
if key.startswith("MEM0_"):
del env[key]
env.pop("FORCE_COLOR", None)
env["PYTHONIOENCODING"] = "utf-8"
if home_dir:
env["HOME"] = home_dir
if env_override:
@@ -56,7 +57,7 @@ def _run(
result = subprocess.run(
[sys.executable, "-m", "mem0_cli", *args],
capture_output=True,
text=True,
encoding="utf-8",
env=env,
)
return subprocess.CompletedProcess(