From 564722a1114e65352dc29f200caf6e57791c52b2 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Mon, 20 Oct 2025 15:27:49 +0200 Subject: [PATCH] fix encoding issue --- tests/test_fastapi_cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_fastapi_cli.py b/tests/test_fastapi_cli.py index a5c10778a..78a49a1fb 100644 --- a/tests/test_fastapi_cli.py +++ b/tests/test_fastapi_cli.py @@ -1,3 +1,4 @@ +import os import subprocess import sys from unittest.mock import patch @@ -20,6 +21,7 @@ def test_fastapi_cli(): ], capture_output=True, encoding="utf-8", + env={**os.environ, "PYTHONIOENCODING": "utf-8"}, ) assert result.returncode == 1, result.stdout assert "Path does not exist non_existent_file.py" in result.stdout