Skip to content

Commit

Permalink
testcase expect_error(): add missing line from rebase
Browse files Browse the repository at this point in the history
It was supposed to preserve the color for debugging meson project tests!

Fixes: d51e202
  • Loading branch information
eli-schwartz committed Jan 28, 2025
1 parent 7c625f8 commit 0b505fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mesonbuild/interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,7 @@ def __init__(self, msg: str, how: str, subproject: str) -> None:
super().__init__(subproject)
self.old_stdout = sys.stdout
sys.stdout = self.new_stdout = io.StringIO()
sys.stdout.colorize_console = getattr(self.old_stdout, 'colorize_console', None)
self.msg = msg
self.how = how

Expand Down

0 comments on commit 0b505fc

Please sign in to comment.