mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-117225: Add color to doctest output (#117583)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
f6e5cc66be
commit
975081b11e
5 changed files with 92 additions and 15 deletions
|
|
@ -448,8 +448,12 @@ class _ANSIColors:
|
|||
BOLD_RED = '\x1b[1;31m'
|
||||
MAGENTA = '\x1b[35m'
|
||||
BOLD_MAGENTA = '\x1b[1;35m'
|
||||
GREEN = "\x1b[32m"
|
||||
BOLD_GREEN = "\x1b[1;32m"
|
||||
GREY = '\x1b[90m'
|
||||
RESET = '\x1b[0m'
|
||||
YELLOW = "\x1b[33m"
|
||||
|
||||
|
||||
class StackSummary(list):
|
||||
"""A list of FrameSummary objects, representing a stack of frames."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue