-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesstdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
The terminal colour detection defaults to checking stderr
's isatty
, rather than stdout
.
As suggested at #128317 (comment), let's default to checking stdout
's isatty
rather than stderr
's.
Here some example output, plus when piping it:
Now | Proposal |
---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
CPython versions tested on:
3.13, CPython main branch
Operating systems tested on:
macOS
Linked PRs
- gh-128595: Default to stdout isatty for colour detection instead of stderr #128498
- gh-128595: Add test class helper to force no terminal colour #128687
- [3.13] gh-128595: Add test class helper to force no terminal colour (GH-128687) #128778
- [3.13] gh-128595: Default to stdout isatty for colour detection instead of stderr (GH-128498) #129057
- gh-128595: Fix
test__colorize
unexpected keyword argument 'file' on buildbots #129070
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesstdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error