Skip to content

Commit

Permalink
add "Warning" for unicolored output
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Feb 20, 2024
1 parent 1deba97 commit faebeae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/poetry/installation/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(
)
if not self._use_modern_installation:
self._io.write_line(
"<warning>Setting `installer.modern-installation` to `false` "
"<warning>Warning: Setting `installer.modern-installation` to `false` "
"is deprecated.</>"
)
self._io.write_line(
Expand Down
2 changes: 1 addition & 1 deletion tests/installation/test_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ def test_executor_fallback_on_poetry_create_error_without_wheel_installer(
executor = Executor(env, pool, config, io)
warning_lines = io.fetch_output().splitlines()
assert warning_lines == [
"Setting `installer.modern-installation` to `false` is deprecated.",
"Warning: Setting `installer.modern-installation` to `false` is deprecated.",
"The pip-based installer will be removed in a future release.",
"See https://github.com/python-poetry/poetry/issues/8987.",
]
Expand Down

0 comments on commit faebeae

Please sign in to comment.