Browse Source

Remove comment

pull/14295/head
Sofie Van Landeghem 8 months ago
committed by GitHub
parent
commit
7e24fd84e6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      tests/test_fastapi_cli.py

5
tests/test_fastapi_cli.py

@ -21,11 +21,6 @@ def test_fastapi_cli():
],
capture_output=True,
encoding="utf-8",
# On Windows, the default console encoding (e.g., cp1252) cannot handle certain
# Unicode characters like emojis (🚀) printed by FastAPI's CLI. This causes a
# UnicodeEncodeError before the CLI can print the expected error message.
# Setting PYTHONIOENCODING to UTF-8 ensures that stdout/stderr streams support
# full Unicode output and the test runs reliably across platforms.
env={**os.environ, "PYTHONIOENCODING": "utf-8"},
)
assert result.returncode == 1, result.stdout

Loading…
Cancel
Save