diff --git a/tests/test_multibot_windows.py b/tests/test_multibot_windows.py index d82efba..d59d990 100644 --- a/tests/test_multibot_windows.py +++ b/tests/test_multibot_windows.py @@ -39,6 +39,7 @@ def test_success_and_failure_wait_for_key_then_keep_exitcode(tmp_path, code): stderr=subprocess.PIPE, text=True, encoding="utf-8", + errors="replace", # cmd.exe `pause` prints in the OEM code page (German: 0x81) ) try: time.sleep(1) @@ -67,6 +68,7 @@ def test_explicit_dry_or_no_pause_skips_wait(tmp_path, opt): capture_output=True, text=True, encoding="utf-8", + errors="replace", # cmd.exe `pause` prints in the OEM code page (German: 0x81) timeout=10, ) assert result.returncode == 23 and "[TEST]" in result.stdout and not result.stderr