fix: support TerminalReporter.isatty being called#13462
fix: support TerminalReporter.isatty being called#13462nicoddemus merged 1 commit intopytest-dev:mainfrom
Conversation
RonnyPfannschmidt
left a comment
There was a problem hiding this comment.
Outside impact is unclear as others may be using the api as is
We may need to introduce a bool wrapper that support direct checks and calling to obtain the underlying boolean
3cf70bc to
f87e547
Compare
18b5524 to
8a0687a
Compare
src/_pytest/terminal.py
Outdated
| def __init__(self, value: bool): | ||
| self._value = value | ||
|
|
||
| def __bool__(self): |
There was a problem hiding this comment.
Do we Want to plan for a evenual deprecation of the non call variant?
There was a problem hiding this comment.
you mean by issuing a warning when it's used?
There was a problem hiding this comment.
I don't think the churn to plugin authors is worth it, given the support code is small.
But we definitely only want to advertise/document the method variant, of course.
9b1085c to
3af5c0a
Compare
3af5c0a to
d3ddfec
Compare
Backport to 8.3.x: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply cba5c4a on top of patchback/backports/8.3.x/cba5c4a98f65fdcfa484749bc06bcde1fb0865bc/pr-13462 Backporting merged PR #13462 into main
🤖 @patchback |
Backport to 8.4.x: 💚 backport PR created✅ Backport PR branch: Backported as #13483 🤖 @patchback |
Fixes #13461.