gh-117225: Add color to doctest output (#117583)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Hugo van Kemenade 2024-04-24 14:27:40 +03:00 committed by GitHub
parent f6e5cc66be
commit 975081b11e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 92 additions and 15 deletions

View file

@ -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."""