From 3f3941bb8318072f7586572ea42fbb104ba9784b Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Wed, 1 Jul 2026 10:37:43 +0300 Subject: [PATCH] Force no color when checking SyntaxError messages in `test_future` --- Lib/test/test_future_stmt/test_future.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_future_stmt/test_future.py b/Lib/test/test_future_stmt/test_future.py index faa3a2bfe121dc..acd8d76dc90a29 100644 --- a/Lib/test/test_future_stmt/test_future.py +++ b/Lib/test/test_future_stmt/test_future.py @@ -3,7 +3,7 @@ import __future__ import ast import unittest -from test.support import import_helper +from test.support import force_not_colorized, import_helper from test.support.script_helper import spawn_python, kill_python from textwrap import dedent import os @@ -176,6 +176,7 @@ def test_unicode_literals_exec(self): exec("from __future__ import unicode_literals; x = ''", {}, scope) self.assertIsInstance(scope["x"], str) + @force_not_colorized def test_syntactical_future_repl(self): p = spawn_python('-i') p.stdin.write(b"from __future__ import barry_as_FLUFL\n")