From: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Wed, 1 Jul 2026 11:20:38 +0000 (+0300) Subject: Use `@force_not_colorized` in `test_syntactical_future_repl` (#152749) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=1656dfbdf7044fd79127bbb79711f28f8d3fc381;p=thirdparty%2FPython%2Fcpython.git Use `@force_not_colorized` in `test_syntactical_future_repl` (#152749) --- diff --git a/Lib/test/test_future_stmt/test_future.py b/Lib/test/test_future_stmt/test_future.py index faa3a2bfe121..acd8d76dc90a 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 @@ class FutureTest(unittest.TestCase): 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")