Skip to content

Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.

test(windows): decode Git Bash output as UTF-8

Pnante6c066de90f4
diff --git a/tests/test_xiaoyuzhou_install.py b/tests/test_xiaoyuzhou_install.py
index e13a1c87..f459c2bd 100644
--- a/tests/test_xiaoyuzhou_install.py
+++ b/tests/test_xiaoyuzhou_install.py
@@ -141,7 +141,8 @@ def test_transcribe_script_rejects_non_xiaoyuzhou_urls_before_curl(
_bash_path(tmp_path / "out.txt"),
],
capture_output=True,
- text=True,
+ encoding="utf-8",
+ errors="replace",
env=env,
cwd=ROOT,
)
@@ -175,7 +176,8 @@ def test_transcribe_script_accepts_http_xiaoyuzhou_hosts(
_bash_path(tmp_path / "out.txt"),
],
capture_output=True,
- text=True,
+ encoding="utf-8",
+ errors="replace",
env=env,
cwd=ROOT,
)
@@ -250,7 +252,8 @@ fi
_bash_path(tmp_path / "out.txt"),
],
capture_output=True,
- text=True,
+ encoding="utf-8",
+ errors="replace",
env=env,
cwd=ROOT,
)
@@ -304,7 +307,8 @@ fi
_bash_path(tmp_path / "out.txt"),
],
capture_output=True,
- text=True,
+ encoding="utf-8",
+ errors="replace",
env=env,
cwd=ROOT,
)