Skip to content

Commit

Permalink
Test color output
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Oct 14, 2024
1 parent 4e6b069 commit 49de00c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mypy/test/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ def assert_string_arrays_equal(
if expected != actual:
expected_ranges, actual_ranges = diff_ranges(expected, actual)
sys.stderr.write("Expected:\n")
red = "\033[31m" if sys.platform != "win32" else None
red = "\033[31m" # if sys.platform != "win32" else None
render_diff_range(expected_ranges, expected, colour=red)
sys.stderr.write("Actual:\n")
green = "\033[32m" if sys.platform != "win32" else None
green = "\033[32m" # if sys.platform != "win32" else None
render_diff_range(actual_ranges, actual, colour=green)

sys.stderr.write("\n")
Expand Down

0 comments on commit 49de00c

Please sign in to comment.