You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecate/drop support for accepting bytes in terminal.write_line #7323
Ok @nicoddemus , thanks for the insights. I'll open a PR soon with the changes. Also, we're deprecating here but we can also drop this as mentioned in the issue, so would that be alright?
Activity
avats-dev commentedon Oct 3, 2020
@nicoddemus Also this one too, can you help out a bit? I think I have to add
DeprecationWarningherepytest/src/_pytest/terminal.py
Lines 424 to 428 in 133e8af
nicoddemus commentedon Oct 4, 2020
Hi @avats-dev,
Thanks for the offer!
Generally yes, but the process is a bit more involved:
src/_pytest/deprecated.py.testing/deprecated_test.py.deprecation.I might have forgotten something, but don't hesitate in open the PR, we can discuss last minute changes there. 👍
avats-dev commentedon Oct 4, 2020
Ok @nicoddemus , thanks for the insights. I'll open a PR soon with the changes. Also, we're deprecating here but we can also drop this as mentioned in the issue, so would that be alright?
nicoddemus commentedon Oct 4, 2020
Our policy is to deprecate it first and only drop it in the next major release, so we really should deprecate it first. 👍
Deprecate passing bytes to TerminalReporter.write_line
LuanaPBueno commentedon Oct 18, 2026
Opened pytest-dev/pytest#15202 for this, following the steps above.