]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use `@force_not_colorized` in `test_syntactical_future_repl` (#152749)
authorShahar Naveh <50263213+ShaharNaveh@users.noreply.github.com>
Wed, 1 Jul 2026 11:20:38 +0000 (14:20 +0300)
committerGitHub <noreply@github.com>
Wed, 1 Jul 2026 11:20:38 +0000 (13:20 +0200)
Lib/test/test_future_stmt/test_future.py

index faa3a2bfe121dc6c924936c08469b392eaf9b89b..acd8d76dc90a293cad03eb7c961a0147f0cb2d0a 100644 (file)
@@ -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")